Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-02-2006, 05:58 AM   #1
Registered: Feb 2003
Distribution: Redhat 9.0
Posts: 104

Rep: Reputation: 15
remote shutdown for none privilege user

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.
Old 05-02-2006, 06:17 AM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
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.
Old 05-02-2006, 06:25 AM   #3
LQ Guru
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,317

Rep: Reputation: Disabled
And you can make to shut it down by itself at certain time.
Old 05-10-2006, 06:32 AM   #4
Registered: Feb 2003
Distribution: Redhat 9.0
Posts: 104

Original Poster
Rep: Reputation: 15
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 .
Old 05-10-2006, 09:40 AM   #5
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo, Slackware
Posts: 345

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
User privilege to partition atlaika Ubuntu 3 04-03-2006 02:44 PM
FC4-Starting sshd: Privilege separation user sshd does not exist FAILED kiranherekar Fedora 5 12-29-2005 03:22 PM
Changing User Privilege question johnnygnote Linux - Software 6 11-13-2003 05:32 PM
Ulimit privilege for a user linuxfans Linux - General 3 04-16-2003 01:03 PM
User privilege on NFS directory Rex_chaos Linux - Networking 2 03-22-2002 11:54 AM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration