On Saturday 19 December 2020 19:15:47 Michael via tde-users wrote:
On Saturday 19 December 2020 11:15:43 am Michael via
tde-users wrote:
> 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:
>
> 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/ This second URL showed
me how to edit the sudoers file and add this:
amanda ALL=(ALL) NOPASSWD:/opt/trinity/bin/dcop
But it still fails:
root@coyote:~$ su amanda -c "/opt/trinity/bin/dcop --user gene --all-sessions kmail
KMailIface resumeBackgroundJobs"
WARNING: ICE authority file /home/gene/.ICEauthorityis not readable by you!
Please check permissions or set the $ICEAUTHORITY variable manually before
calling dcop.
[2020/12/19 20:16:00.554] DCOPClient::attachInternal. Attach failed Could not open network
socket
[2020/12/19 20:16:00.554] DCOPClient::attachInternal. Attach failed Could not open network
socket
ERROR: Couldn't attach to DCOP server!
[2020/12/19 20:16:06.556] DCOPClient::attachInternal. Attach failed Could not open network
socket
[2020/12/19 20:16:12.557] DCOPClient::attachInternal. Attach failed Could not open network
socket
ERROR: Couldn't attach to DCOP server!
If I take out the --all-sessions, I get this:
root@coyote:~$ su amanda -c "/opt/trinity/bin/dcop --user gene kmail KMailIface
resumeBackgroundJobs"
ERROR: Multiple available TDE sessions!
Please specify the correct session to use with --session or use the
--all-sessions option to broadcast to all sessions.
Which sounds like it might work if --session was named, but whats a "session"?
Thanks.
The two links* above Gene should do everything you
need. There should
be no need to dig into ICEauthority or anything else. Yes you'll need
to edit the sudoers file, but there's plenty of google fu on how to do
that.
Best,
Michael
*In the second link see section: "Run only specific sudo commands
without password"
____________________________________________________
tde-users mailing list -- users(a)trinitydesktop.org
To unsubscribe send an email to users-leave(a)trinitydesktop.org
Web mail archive available at
https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinity
desktop.org
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>