Page 1 of 1

Task commands after job

Posted: Mon Nov 14, 2022 6:11 pm
by Neppomuk
Hi

I chained some tasks, and the last one executes "/sbin/shutdown -h now". In DSM 6 this workd as expected, but things has changed on DSM 7. First I fixed the error "Command "shutdown -h now" not listed in file to allow external commands: /volume1/@appstore/Syncovery/usr/bin/authorized_cmdlines_syncovery", Iv'e added the command to this file (with root privileges). Now I get "Executed /sbin/shutdown -h now, Exit Code=1". Code 1 means file not exist? Ehm, shutdown is there, so I'm out with my linux skills.

Anyone who knows what I've done worong, or another solution to shut down the DiskStation after the last Task is done in Syncovery?

Re: Task commands after job

Posted: Mon Nov 14, 2022 7:24 pm
by tobias
Hello,
I think error code 1 means: Permission Denied.

If you want Syncovery to execute this command, then Syncovery must run as root.

You can install Syncovery as root on DSM 7 using our Syncovery Linux Installer Utility for Windows:
https://www.syncovery.com/download/linux/

Re: Task commands after job

Posted: Mon Nov 14, 2022 7:43 pm
by Neppomuk
Hi

5 min testing and it looks like you're right. Synology changed the permission to access shutdown (and other stuff due of security reason) exclusivly to the root user. And there is no way to change this. So I'll check the way with the linuix installer. Thanks.

Re: Task commands after job

Posted: Mon Nov 14, 2022 8:00 pm
by Neppomuk
OK final feedback. The Syncovery Linux Installer did the trick.

Re: Task commands after job

Posted: Mon Nov 14, 2022 9:07 pm
by tobias
Thanks!