NAS326 poweroff from command line, remote machine



Zyxel NAS326 updated to latest firmware.

Is there a way to switch it off from a remote machine in the same LAN via SSH?

This command shows the output of uname -a from a remote machine
sshpass -p '123' ssh admin@ "uname -a"

But it seems sudo is not available and the only way to switch it off is interactively via the su command:

~ $ su

BusyBox v1.19.4 (2023-11-06 00:42:18 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ # poweroff

Is there a way to enter password non-interactively so that a one-liner or simple script could switch the NAS326 off?

Thank you in advance.

All Replies

Consumer Product Help Center