LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   remote shutdown for none privilege user (https://www.linuxquestions.org/questions/linux-newbie-8/remote-shutdown-for-none-privilege-user-440827/)

wincrk 05-02-2006 04:58 AM

remote shutdown for none privilege user
 
Hi,
i had setup one samba serber for file sharing between several windows and mac. this linux box does not have anything attached to it, except the power cable and network cable. it does not has monitor or keyboard.

this linux box has a huge hard disk of 350GB. what become my concern is the way to shut down this linux.
how do i allow the user of this samba server to shut down this linux without login as root?

this machine must be shutdown everyday because after office hour the power will be cut-off for the whole level.

thanks in advance.

jschiwal 05-02-2006 05:17 AM

Do they have ssh access to the server. You can use the "visudo" program to edit the sudoers file. You can allow certain users and certain groups to run a particular command. You can also have it set up so they don't need a password for this one command. Your sudoers file may even have a commented example for the shutdown command.

Also, check the security setup for the server. There may be an item on whether users can shutdown the computer from a non-local terminal.

Emerson 05-02-2006 05:25 AM

And you can make to shut it down by itself at certain time.

wincrk 05-10-2006 05:32 AM

thanks jschiwal,

i'm just a new comer for linux. could you give come example of the sudoer file to allow user to shutdown pc from ssh.

i could not schedule the shutdown process at a particular time because they dont have afixed time .

geeman2.0 05-10-2006 08:40 AM

Odds are the sudoers file already exists, and it is highly commented to make it easy to figure out how to add entries.


All times are GMT -5. The time now is 02:55 PM.