LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   shutdown (https://www.linuxquestions.org/questions/linux-newbie-8/shutdown-226448/)

praveenv 09-04-2004 01:37 AM

shutdown
 
/sbin/shutdown file has "rx" permissions to group and others also, then why can't it allow regular users to shutdown the system

btmiller 09-04-2004 01:51 AM

Put the users in /etc/shutdown.allow -- *nix commands that modify system state (such as changing IP addresses and the like) won't work for normal users, even if they can access the commands, because the kernel puts in checks. The /etc/shutdown.allow file allows users listed in there to short-circuit that (not sure the exact method).

caid 09-04-2004 03:12 AM

or you could have a look at "sudo"

caid


All times are GMT -5. The time now is 01:41 AM.