LinuxQuestions.org
Visit Jeremy's Blog.
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-07-2012, 02:34 AM   #1
vp0619520
Member
 
Registered: Jan 2012
Posts: 55

Rep: Reputation: Disabled
init command question


Hi team,
I have a question,I found that the permission of "/sbin/init "is 755,but why can not I run this command with the general user?
 
Old 04-07-2012, 04:21 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
well you can literally run it, but the code will check your uid and only permit any consequences to be taken by root.
 
Old 04-07-2012, 04:29 AM   #3
matrix13
Member
 
Registered: Nov 2006
Location: Kerala, India
Distribution: Arch Linux
Posts: 134

Rep: Reputation: 25
The permissions for the command is indeed rwxr-xr-x (755). But, though the command can be initiated by user, it will be executed as root. That is a limitation of that command, but an intentional limitation so that the user will not accidentally harm the system.
 
Old 04-07-2012, 05:05 AM   #4
vp0619520
Member
 
Registered: Jan 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
Acid_kewpie/matrix13 Thanks a lot!
So you mean the running mechanism or verification rules has been written in the program.Because I found that the file "/sbin/init" is a compiled executable program.Is that right?


Best regards.
 
  


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: Command is respawning too rapidly scruggsdl Solaris / OpenSolaris 5 10-21-2010 11:40 AM
working of init command himanshu1987 Linux - Newbie 12 12-15-2009 08:50 AM
i want to know working of init command himanshu1987 Linux - Newbie 2 12-14-2009 07:53 AM
su command in init script blocks RachunZero Linux - General 6 08-22-2006 05:30 AM
using init command reetep Linux - Newbie 7 10-27-2003 04:11 PM


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