On Saturday 19 December 2020 08:34:37 am Gene Heskett via tde-users wrote:
On Saturday 19 December 2020 03:32:07 Gene Heskett wrote:
Now I need some cross permissions help.
I have added two dcop commands to my backup.sh that are: /opt/trinity/bin/dcop kmail KMailIface pauseBackgroundJobs and: /opt/trinity/bin/dcop kmail KMailIface resumeBackgroundJobs
But this script run as amanada, who is part of the backup group and this error or generated: ERROR: Couldn't attach to DCOP server! when backup.sh is launched by amanda.
So, how do I add the backup group (or the user amanda) to the list of users who can access dcop and send kmail a msg?
Hi Gene,
Thanks for posting the dcop commands, I’ve been meaning to add similar to my local nightly backup for awhile.
On the permissions issue:
Use sudo, basically the same as using sudo for yourusername to root, but replace root with yourusername and yourusername with amanada. And then get sudo to run without password.
- https://www.golinuxhub.com/2013/12/how-to-give-permission-to-user-to-run/ - https://linuxhandbook.com/sudo-without-password/
Straight su option? (I think this always wants password though): - https://unix.stackexchange.com/questions/372850/how-to-run-command-as-differ...
HTH, Michael