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