LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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, 05:25 AM   #3
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
And you can make to shut it down by itself at certain time.
 
Old 05-10-2006, 05:32 AM   #4
wincrk
Member
 
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, 08:40 AM   #5
geeman2.0
Member
 
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.
 
  


Reply



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 01:44 PM
FC4-Starting sshd: Privilege separation user sshd does not exist FAILED kiranherekar Fedora 5 12-29-2005 02:22 PM
Changing User Privilege question johnnygnote Linux - Software 6 11-13-2003 04:32 PM
Ulimit privilege for a user linuxfans Linux - General 3 04-16-2003 12:03 PM
User privilege on NFS directory Rex_chaos Linux - Networking 2 03-22-2002 10:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:37 PM.

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