LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to give a user right to shutdown? (https://www.linuxquestions.org/questions/linux-general-1/how-to-give-a-user-right-to-shutdown-115106/)

gagan_fzks 11-12-2003 02:53 AM

how to give a user right to shutdown?
 
I'm working in an office nad so I cannot give root password to anyone in the office. So I have created a user in my linux which has some rights to work on machine. But i don't know how to give that user the right to shutdown or reboot the machine. Would anyone help me in this. thanx in advance. ;)

Quis 11-12-2003 04:26 AM

i am not realy sure, but you can try to set the SUID-Bit on shutdown with
chmod +s /sbin/shutdown

aqoliveira 11-12-2003 04:57 AM

Howzit

in /etc create a file called shutdown.allow place their names in this file, they must use cmd: shutdown -a

chow

david_ross 11-12-2003 12:29 PM

This isn't network related, Moved to Linux General


All times are GMT -5. The time now is 12:46 PM.