Linux root user question
Posted: Sat Sep 16, 2006 3:45 pm
Ok so i'm slowly learning about linuix (it's quite different from the way Windows works isn't it?) and right now I'm just learning about shell basics...
I had no idea it was the shell which actually expanded wildcards, etc I was always under the impression the program invoked was responsible for that, as most CLI applications I have worked with or viewed had most of that functionality implemented locally (possibly due to programmert naeivty who knows). Perhaps DOS does wildcard expansion as well.
Anyways, I have installed Linux RH on an old computer and just went with a web server setup (No KDE, etc)
I'm playing around with the CLI learning functions like pwd, etc...WOW have I been spoiled or mislead by Windows over the years
Anyways...one thing that struck me as odd. My computer had 2 drives (phsyical) and both appear to have 2 partitions ins each. One which I boot from or have marked as bootable I created a swap partition.
I login as root (I haven;t created any users yet - don't need to as of now) and i'm navigating the file structure. I am slowly grasping the concept of mounting, but again from a Windows perspective it's quite different, but interesting.
When logged in I am at the root user home directory, which is I assume lateral to others users home directorties? At first I assumed it was the parent, but now it appears (from reading only not experimenting) they are lateral?
I do a dir or ls -a and I am displayed a few .bash_* type files thats it???
I have no subdirectories or anything, where in the heck is Apache? from the root path I call apache start and I get appropriate errors saying ServerName can't be set so set with directives...not sure I fully understand, but I think I just need to modify the Apache conf file...
I assume it'sa because Apache's path is set in the environment variables...I just read a doc on that, so i'll reread again...
My question is...is this a typical Linux setup?
I assume root is just like other users but username is fixed as "root" and under root you have advanced permissions like installing applications in the BIN directory which are accessable from anywhere?
I just googled the following: http://www.secguru.com/files/cheatsheet ... ucture.jpg
Makes things a little more clear.
However, if I'm inside root and only everything inside of root is available to me using relative paths, if I wanted to edit Apache conf file or invoke Apache directly would I have to use some form of absolute path indicating it's outside of the root directory???
Sorry for the newbie questions...some areas I've made good progress and this is one that has me stumped..
Cheers
I had no idea it was the shell which actually expanded wildcards, etc I was always under the impression the program invoked was responsible for that, as most CLI applications I have worked with or viewed had most of that functionality implemented locally (possibly due to programmert naeivty who knows). Perhaps DOS does wildcard expansion as well.
Anyways, I have installed Linux RH on an old computer and just went with a web server setup (No KDE, etc)
I'm playing around with the CLI learning functions like pwd, etc...WOW have I been spoiled or mislead by Windows over the years
Anyways...one thing that struck me as odd. My computer had 2 drives (phsyical) and both appear to have 2 partitions ins each. One which I boot from or have marked as bootable I created a swap partition.
I login as root (I haven;t created any users yet - don't need to as of now) and i'm navigating the file structure. I am slowly grasping the concept of mounting, but again from a Windows perspective it's quite different, but interesting.
When logged in I am at the root user home directory, which is I assume lateral to others users home directorties? At first I assumed it was the parent, but now it appears (from reading only not experimenting) they are lateral?
I do a dir or ls -a and I am displayed a few .bash_* type files thats it???
I have no subdirectories or anything, where in the heck is Apache? from the root path I call apache start and I get appropriate errors saying ServerName can't be set so set with directives...not sure I fully understand, but I think I just need to modify the Apache conf file...
I assume it'sa because Apache's path is set in the environment variables...I just read a doc on that, so i'll reread again...
My question is...is this a typical Linux setup?
I assume root is just like other users but username is fixed as "root" and under root you have advanced permissions like installing applications in the BIN directory which are accessable from anywhere?
I just googled the following: http://www.secguru.com/files/cheatsheet ... ucture.jpg
Makes things a little more clear.
However, if I'm inside root and only everything inside of root is available to me using relative paths, if I wanted to edit Apache conf file or invoke Apache directly would I have to use some form of absolute path indicating it's outside of the root directory???
Sorry for the newbie questions...some areas I've made good progress and this is one that has me stumped..
Cheers