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 03-29-2009, 08: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, 08:51 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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


Or question, maybe?
 
Old 03-29-2009, 08: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, 09:29 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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

Rep: Reputation: 387Reputation: 387Reputation: 387Reputation: 387
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, 10:25 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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, 10:28 PM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,074

Rep: Reputation: 387Reputation: 387Reputation: 387Reputation: 387
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 10:33 PM.
 
Old 03-29-2009, 10:41 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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, 11:00 PM   #9
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,074

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

Rep: Reputation: 3027Reputation: 3027Reputation: 3027Reputation: 3027Reputation: 3027Reputation: 3027Reputation: 3027Reputation: 3027Reputation: 3027Reputation: 3027Reputation: 3027
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, 11: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


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

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

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