From e25ffb5575ecb7c312051ea1b467ef14e8c55b14 Mon Sep 17 00:00:00 2001 From: Zareian Date: Sun, 18 Oct 2026 00:48:23 +0330 Subject: [PATCH] CLAUDE.md: 216 password is the AdminUser-Password line Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index afcf682..7a2f894 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -70,7 +70,8 @@ own `postgresql@14-main`, which we never use. **`78.38.35.216` (hostname `mathapp`, new dedicated VM, not yet serving users)**, account `zareian` (sudo; the senior and the company owner share `mathapp-admin`, also sudo; no other logins): the whole machine is ours. The app runs as the non-sudo user `mathapp` under `/home/mathapp/`; same unit names as on 249. -Password is the `Password` line after `NewServer` in the password file. State and the cut-over order: +Both accounts use the password on the `AdminUser-Password` line of the password file (the `Password` line under +`NewServer` is older). State and the cut-over order: `docs/operations.md` «سرورِ اختصاصیِ جدید». Until cut-over, 249 stays the live server and every rule below applies there unchanged; on 216, rules 1, 5, 6, 8 and 10 still apply. @@ -122,7 +123,7 @@ once sent the whole line and SSH refused it): ```bash sed -n '/^Password/{s/^[^:]*: *//;p;q;}' ~/Desktop/'رمز سرور.txt' | tr -d '\r\n' > "$SCRATCH/.pw" && chmod 600 "$SCRATCH/.pw" # 249/247 (first Password line) -awk '/^NewServer/{f=1;next} f && /^Password/{sub(/^[^:]*: */,"");printf "%s",$0;exit}' ~/Desktop/'رمز سرور.txt' > "$SCRATCH/.pwn" && chmod 600 "$SCRATCH/.pwn" # 216 +awk '/^AdminUser-Password/{sub(/^[^:]*: */,"");printf "%s",$0;exit}' ~/Desktop/'رمز سرور.txt' | tr -d '\r\n' > "$SCRATCH/.pwn" && chmod 600 "$SCRATCH/.pwn" # 216 sshpass -f "$SCRATCH/.pw" ssh administrator@78.38.35.249 '' sshpass -f "$SCRATCH/.pw" ssh administrator@78.38.35.249 'sudo -S -p "" ' < "$SCRATCH/.pw" rm -P "$SCRATCH/.pw" # as soon as the work is done (macOS has no shred); recreate it next time