From 33db2babbc4e4a3aa628b3bb0e70ff9675f187b6 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Sat, 29 Jun 2024 16:57:47 +0200 Subject: [PATCH] setrootpw: update Signed-off-by: AuxXxilium --- setrootpw/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setrootpw/install.sh b/setrootpw/install.sh index 391d6ff..f78d990 100755 --- a/setrootpw/install.sh +++ b/setrootpw/install.sh @@ -37,7 +37,7 @@ if [ "${1}" = "late" ]; then DELETE FROM task WHERE task_name LIKE 'SetRootPw'; INSERT INTO task VALUES('SetRootPw', '', 'bootup', '', 0, 0, 0, 0, '', 0, ' PW="" # Please change to the password you need. -[ -n "\${PW}" ] && /usr/syno/sbin/synouser --setpw root \${PW} && systemctl restart sshd +[ -n "\${PW}" ] && /usr/syno/sbin/synouser --setpw root \${PW} && synogroup --memberadd administrators root && systemctl restart sshd synowebapi --exec api=SYNO.Core.Terminal method=set version=3 enable_ssh=true ssh_port=22 ', 'script', '{}', '', '', '{}', '{}'); EOF