LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-29-2009, 07:25 PM   #1
palisetty_suman
Member
 
Registered: Feb 2007
Location: TX, USA
Distribution: fedora
Posts: 191

Rep: Reputation: 33
Thumbs up init and root


Hey may be i am asking you very simple question, but i have doubt regarding the difference between root directory and init directory. Its not homework please.
 
Old 03-29-2009, 07:51 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
And what's your doubt?


Or question, maybe?
 
Old 03-29-2009, 07:56 PM   #3
palisetty_suman
Member
 
Registered: Feb 2007
Location: TX, USA
Distribution: fedora
Posts: 191

Original Poster
Rep: Reputation: 33
Thumbs up HI

the question is the difference between init and root Tinkster.
 
Old 03-29-2009, 08:29 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
root is a user, init is a process?
 
Old 03-29-2009, 09:24 PM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Root can be many things: a user, a group, a filesystem (and even here, you can mean either / or /root, which are two things, and can be on separate fs's as well), or simply the name of a directory.

Init is the process which has PID 1, parent of the rest of processes. The term "init" can be used sometimes.
 
Old 03-29-2009, 09:25 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Ohhh ...

And / and /root are directories, of course. You didn't specify
which one you meant.

And there's no directory called init on any of the linux machines
I've had access to so far ...
 
Old 03-29-2009, 09:28 PM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by Tinkster View Post
Ohhh ...

And / and /root are directories, of course. You didn't specify
which one you meant.
They can be both directories and fs's. You will hear a lot of times about the root fs, which can be used to refer to both of them, though the most correct interpretation would be to talk about the root fs when you mean /, and the root dir when you mean /root, I guess, even if /root can be a separate fs itself.

Quote:
And there's no directory called init on any of the linux machines
I've had access to so far ...
I didn't say so. There's an /etc/init.d though.

Last edited by i92guboj; 03-29-2009 at 09:33 PM.
 
Old 03-29-2009, 09:41 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
And I didn't refer to your post at all ;}

In fact, when I started writing the above your post wasn't there yet ...
 
Old 03-29-2009, 10:00 PM   #9
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Oh, sorry, it seems that our timing was the problem hehe
 
Old 03-29-2009, 10:03 PM   #10
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,657
Blog Entries: 4

Rep: Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938
Generically speaking, "root" refers to user-id #0, which is traditionally an "all-powerful" user. Processes running with this effective user-id are also "all-powerful."

In actual "hardened" Linux implementations, usually no processes actually have "all" powers, but those processes which have extraordinary powers are still referred-to as being "rootly."

"init," on the other hand, is a process that is manually constructed during the kernel-initialization sequence. It then becomes the first process that runs, and which is responsible for starting all the others. Also, when a process is "orphaned" by its parent, init is the process that reaps the orphan when it finally dies.

The "init" process is not allowed to die. If it does, for any reason at all, the kernel will panic with a rather poorly-worded message ... "attempted to kill init."
 
Old 03-29-2009, 10:06 PM   #11
palisetty_suman
Member
 
Registered: Feb 2007
Location: TX, USA
Distribution: fedora
Posts: 191

Original Poster
Rep: Reputation: 33
Thumbs up HI

Hi all, i am happy that i got answer what i wanted. Thanks. I was asking for root only (/).
 
  


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
Error at init: root not found valdezr1 Fedora 1 04-03-2007 01:44 PM
root file system and init vishalbutte Programming 2 01-07-2006 11:58 AM
/var/lib/init.d/softlevel unaccessable even to root!!?? PeaceTank Linux - Software 2 03-13-2005 08:12 PM
/root/init.c: No File or Directory in GDB irfanhab Programming 2 01-28-2005 11:17 PM
Unable to mount root fs on 03:01, after init. xconspirisist Linux - Software 11 06-15-2004 01:44 AM

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

All times are GMT -5. The time now is 06:15 AM.

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