Results 1 to 10 of 16
Hi Gurus out there,
Need help.
Iam using RH9 in text mode.
I want to allow my users to shutdown my linux server how can I do that?
thanks....
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-21-2003 #1Just Joined!
- Join Date
- Nov 2003
- Posts
- 34
Allowing users to shutdown Linux Server
Hi Gurus out there,
Need help.
Iam using RH9 in text mode.
I want to allow my users to shutdown my linux server how can I do that?
thanks.
- 11-21-2003 #2Linux Guru
- Join Date
- Apr 2003
- Location
- London, UK
- Posts
- 3,284
tell them to run
"/sbin/shutdown -h now" to run it off
" /sbin/shutdown -r now" to restart
Jason
- 11-21-2003 #3Linux Engineer
- Join Date
- Mar 2003
- Location
- U.S.A.
- Posts
- 1,025
J doesn't he need to add the permissions to the account or dir for those cmds? I thought only root had rights for the shutdown cmd. i.e Joe blow with telnet rights to his home dir only cannot run system commands even with the correct paths. i.e "rm -rf /"
Dan
\"Keep your friends close and your enemies even closer\" from The Art of War by Sun Tzu\"
- 11-21-2003 #4Linux Guru
- Join Date
- Apr 2003
- Location
- London, UK
- Posts
- 3,284
I may be wrong, but IIRC normal users dont have /sbin/ in their PATH environment variable, only r00t does. hence running the shutdown cmd preceeded with /sbin/ *should* work. Give it a try, I could be wrong.
Jason
- 11-21-2003 #5
Yeah, that should work. Looking at my permissions (that I haven't changed) on /sbin/shutdown, I see that the permissions are 755.
"Time is an illusion. Lunchtime, doubly so."
~Douglas Adams, The Hitchhiker's Guide to the Galaxy
- 11-21-2003 #6Linux Engineer
- Join Date
- Mar 2003
- Location
- U.S.A.
- Posts
- 1,025
Now thats a hole for anyone with telnet/ssh access.
Dan
\"Keep your friends close and your enemies even closer\" from The Art of War by Sun Tzu\"
- 11-22-2003 #7
/me changed those permissions right after posting.
"Time is an illusion. Lunchtime, doubly so."
~Douglas Adams, The Hitchhiker's Guide to the Galaxy
- 11-22-2003 #8Linux Engineer
- Join Date
- Sep 2003
- Location
- Knoxhell, TN
- Posts
- 1,078
i tried shutting down as a regular user (shutdown with default 755 perms).. it gives the following message:
so shutdown has a built-in failsafe..Code:shutdown: you must be root to do that!
Their code will be beautiful, even if their desks are buried in 3 feet of crap. - esr
- 11-22-2003 #9
you could use sudo, so the users could just sudo /sbin/shutdown -h now
- 11-22-2003 #10Linux Guru
- Join Date
- Apr 2003
- Location
- London, UK
- Posts
- 3,284
I stand corrected
Originally Posted by lordnothing


Reply With Quote
