On Sun, Oct 29, 2023 at 9:49 PM ToddAndMargo via users <users@xxxxxxxxxxxxxxxxxxxxxxx> wrote: > > On 10/29/23 05:19, Tim via users wrote: > > On Sun, 2023-10-29 at 04:04 -0700, ToddAndMargo via users wrote: > >> I am trying to get around the password issue so I > >> can just do a libnotify popup when I log into my > >> desktop > > > > I recall there's sudo configuration options for users and/or particular > > commands that don't require a password. > > > > "To run particular commands without sudo password in Linux, you can use > > the NOPASSWD directive in the /etc/sudoers file. This directive allows > > you to specify a list of commands that can be run without requiring a > > password." > > > > Of course there are risks involved, you'll have decide about that for > > yourself. > > Seems like I am going to have to compromise on sudo I believe you can avoid that if you want. Write a C program that calls fork/exec. Call nvme in the fork. Set the setuid bit on the program. You can't do it in a wrapper script because you can't setuid on scripts. Jeff _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue