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.
|
And what's your doubt?
Or question, maybe? |
HI
the question is the difference between init and root Tinkster.
|
root is a user, init is a process?
|
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. |
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 ... |
Quote:
Quote:
|
And I didn't refer to your post at all ;}
In fact, when I started writing the above your post wasn't there yet ... |
Oh, sorry, it seems that our timing was the problem hehe :)
|
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." |
HI
Hi all, i am happy that i got answer what i wanted. Thanks. I was asking for root only (/).
|
All times are GMT -5. The time now is 01:43 AM. |