On 10/25/18 6:10 PM, Patrick Dupre wrote: > >> >> On 10/25/18 4:55 PM, Patrick Dupre wrote: >>> >>> On Thu, Oct 25, 2018 at 10:40 AM Patrick Dupre <pdupre@xxxxxxx >>> <mailto:pdupre@xxxxxxx>> wrote: >>> >>> Hello, >>> >>> I do not understand this error message: >>> /sbin/shutdown -h +70 >>> Failed to set wall message, ignoring: Interactive authentication >>> required. >>> Failed to call ScheduleShutdown in logind, proceeding with immediate >>> shutdown: Interactive authentication required. >>> >>> >>> Did you run it as root or with sudo? >>> >>> In visudo, I have >>> pdupre localhost=/sbin/shutdown -h +70 >> >> That wasn't the question. Did you "sudo /sbin/shutdown -h +70" or did >> you simply run it as yourself ("/sbin/shutdown -h +70")? >> >> If the latter, you're not root (nor are you sudo'd to root). Both >> wall messages to all users (the first message) and shutdown (the second >> message) can only be done by someone with root privileges. If a normal >> user tries either, they must authenticate and they must be members of >> the "wheel" group (admins). > > Really!! > Here is my understanding. > The setting of visudo also the user pdupre to run the line command without being root. > (just /sbin/shutdown -h 70) > Actually, in 90% of the cases the line command works without complain, but sometimes > it does not work and I do not understand why. No, lines in the sudoers file (which is what visudo edits) specify which commands a user MAY use via "sudo <command>". It does confer root privileges for that command automatically. When you enter "sudo <command>", sudo checks the sudoers file to see if you are permitted to run the command as root and if so, runs it as root on your behalf. ---------------------------------------------------------------------- - Rick Stevens, Systems Engineer, AllDigital ricks@xxxxxxxxxxxxxx - - AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 - - - - Brain: The organ with which we think that we think. - ---------------------------------------------------------------------- _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx