Task commands after job

English Support for Syncovery on Linux etc.
Post Reply
Neppomuk
Posts: 3
Joined: Mon Nov 14, 2022 5:01 pm

Task commands after job

Post 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?

tobias
Posts: 1603
Joined: Tue Mar 31, 2020 7:37 pm

Re: Task commands after job

Post 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/

Neppomuk
Posts: 3
Joined: Mon Nov 14, 2022 5:01 pm

Re: Task commands after job

Post 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.

Neppomuk
Posts: 3
Joined: Mon Nov 14, 2022 5:01 pm

Re: Task commands after job

Post by Neppomuk »

OK final feedback. The Syncovery Linux Installer did the trick.

tobias
Posts: 1603
Joined: Tue Mar 31, 2020 7:37 pm

Re: Task commands after job

Post by tobias »

Thanks!

Post Reply