LinuxQuestions.org
Review your favorite Linux distribution.
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 04-05-2008, 11:41 AM   #1
CoffeeKing!!!
Member
 
Registered: Mar 2008
Posts: 117

Rep: Reputation: Disabled
init.d scripts and sudo


I recently added a script into init.d. Before, if I wanted to execute this program I needed to run it by entering sudo first. Now that I've entered it as a startup script, it doesn't ask for permission anymore.

While I like this behavior, I'm also confused as to why I'm not asked for sudo anymore. Is it because I already had to be sudo to insert the script into init.d? If anyone could give me exact reasons, that would be awesome.

Thanks
 
Old 04-05-2008, 11:49 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
The scripts in init.d are owned by root, and run as root.
If their permissions are set right, normal users are unable to modify them. So no "sudo" is required.
 
Old 04-05-2008, 12:35 PM   #3
CoffeeKing!!!
Member
 
Registered: Mar 2008
Posts: 117

Original Poster
Rep: Reputation: Disabled
Thanks tredegar!
 
  


Reply


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
Init Scripts brazilian_user Linux - General 3 12-05-2006 09:51 AM
what is the scripts in /etc/init.d for? blackzone Linux - General 7 09-07-2006 12:10 AM
init scripts lvgandhi Debian 2 10-11-2005 03:44 AM
New init scripts? xconspirisist Fedora 9 12-09-2004 12:41 PM
Scripts in /etc/rc.d/init.d correro Linux - General 1 03-13-2003 10:47 PM


All times are GMT -5. The time now is 02:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration