LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Poweroff as user (https://www.linuxquestions.org/questions/slackware-14/poweroff-as-user-350891/)

Xian 08-08-2005 04:29 AM

Quote:

Originally posted by Nylex
Nice one, thanks. Quick question though: why is it that you have to use visudo to edit the sudoers file, instead of being able to edit the file directly, like you can with fstab for example?
Visudo makes sure that no two admins are editing this file at the same time, preserves the permissions on the file, and performs some syntax checking to make sure you make no fatal mistakes are in the file.

Murdock1979 08-08-2005 11:12 AM

XavierP:

Changing the permissions didn't work for me, because at least in my kernel (2.4.40), you need kernel permissions for those commands.

Thanks!

mjalalynia 07-21-2008 02:12 AM

shutdown problem
 
[QUOTE=shotwellj;1788000]To use the xfce shutdown button, you'll need to visudo and add

Code:

%users ALL=(root) NOPASSWD: /usr/libexec/xfsm-shutdown-helper
----------------------------------------------
i can not shutdown my computer from xfce (root).i add "%users ALL=(root) NOPASSWD: /usr/libexec/xfsm-shutdown-helper" to my sudoers file but it doesn't work yet !!
what can i do?

XavierP 07-21-2008 05:18 AM

Good answer but this thread is almost 2 years old and, as such, dead. I have closed this thread to save it being resurrected further.


All times are GMT -5. The time now is 04:56 PM.