best way to user sudo for a long running back group process
Davis Roman <[email protected]>
| Newsgroups | gmane.comp.tools.sudo.user |
|---|---|
| Message-ID | <CACfi_Z2Ks+f6aac=Ph3KbE89B0D7cAaL4DpZhDA0G+3uiT887g@mail.gmail.com> |
hello, I have a daemon called powermanager running as the non-root user, power. In /etc/sudoers.d/power, I have the following: power ALL=(ALL) NOPASSWD: ALL I know that the above statement essentially gives the powermanager process root priveleges however, in the future, I'd like to have the option to enforce that certain commands/files not be used. My understanding is that the sudoers file would be the place to place these rules. ( ie: disable ability to open file /dev/foobar ) Therefore on startup, I configured my systemd unit file to run as the power user however I'm trying to figure out which is best: 1. launch this process as 'sudo powermanager' or 2. launch my process as just 'powermanager' and let the process deal with invoking sudo when it needs to open files in /dev/ Any feedback would be greatly appreciated. Thank you, Davis ____________________________________________________________ sudo-users mailing list <[email protected]> For list information, options, or to unsubscribe, visit: https://www.sudo.ws/mailman/listinfo/sudo-users