LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-15-2006, 10:31 AM   #1
chobin
LQ Newbie
 
Registered: May 2006
Location: Italy
Distribution: Fedora Core 4 - Suse 10.0
Posts: 24

Rep: Reputation: 15
using shutdown command without root privilege


Hi,
I need to execute reboot command in a script.
How can I do this from a common user?
I'd like to do this without using sudo if it's possible.
Thanks
 
Old 06-15-2006, 10:40 AM   #2
grumpf
Member
 
Registered: Dec 2005
Distribution: just replace windows with linux
Posts: 38

Rep: Reputation: 15
you do not run a server or so , do you ?
chmod +s /sbin/halt

that let anyone! shut you down. do it only if you KNOW what you are doing.
 
Old 06-15-2006, 10:51 AM   #3
chobin
LQ Newbie
 
Registered: May 2006
Location: Italy
Distribution: Fedora Core 4 - Suse 10.0
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by grumpf
you do not run a server or so , do you ?
chmod +s /sbin/halt

that let anyone! shut you down. do it only if you KNOW what you are doing.
Thank you very much !!! It works perfectly
 
  


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
Identifying non-administrators w/ root privilege/ Multiple root account in use wjeanpaul Linux - Security 4 05-19-2006 08:55 PM
remote shutdown for none privilege user wincrk Linux - Newbie 4 05-10-2006 08:40 AM
how to get root privilege in a script jpan Linux - General 5 01-07-2005 02:46 PM
Why root has no privilege to access some directories ymei Linux - General 4 10-08-2003 08:14 AM
How to get root privilege in program using c? whepin Programming 1 04-06-2002 05:27 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:47 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