Unix Technical Forum

Location of root directory

This is a discussion on Location of root directory within the AIX Operating System forums, part of the Unix Operating Systems category; --> >>I'm trying to determine what truly is the best practice >>for the location of the root home directory and ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 01-05-2008, 11:54 AM
Mark Taylor
 
Posts: n/a
Default Re: Location of root directory

>>I'm trying to determine what truly is the best practice
>>for the location of the root home directory and why or if it really
>>matters


of course it matters, my questions were retorical and you failed to
pick that up .. you actually do have the right idea but how you got to
that conslusion is anyones guess .. if / fills up then the system can
hang .. so having someones home directory as / with super user access
rights to write any thing of any size (ulimits are usually -1 for
root) is plain old suicide .. it may not be a user, but it could be a
script or a typo or an accident .. better to have that accident
somewhere where it will not hang you system.

my 2 cents .. and go read some books ..

HTH
Mark Taylor

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 01-05-2008, 11:54 AM
=?UTF-8?B?TMWRcmluY3p5IFpzaWdtb25k?=
 
Posts: n/a
Default Re: Location of root directory

Well AIX is a UNIX-like system, but not really UNIX...

In UNIX you place essential binaries into /bin and /sbin,
everything else into /usr/bin and /usr/sbin (and many other places).
This way in emergency you can save/repair your system even without
mounting /usr. On the other hand, in AIX /bin and /sbin are empty,
every binary is located in /usr.

About your question: non-creating a /root directory is simply
pollution of the root directory... or laziness
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 01-05-2008, 11:54 AM
Laurenz Albe
 
Posts: n/a
Default Re: Location of root directory

ankhu.igs@gmail.com wrote:
> I've tried to find something about this in "Best Practices" documents
> but haven't run across anything. In almost all places I have worked
> with AIX, the root home directory has always been "/". Where I am
> working now the standard seems to be to have the root directory in /
> home/root or in some cases /root, but there is great resistance to
> having the root home directory in "/". So I'm sure there are a lot of
> opinions on the subject. What's your? Which do you prefer and why?
> Is there a technical justification for your choice? Is your choice
> best practice or just force of habit?


OK, here is my opinion:

Having root's home directory in / presents some risk because it is much
easier to type 'cd' accidentally than 'cd /'. And once you are in
/ a number of recursive commands can be detrimental (I once ruined a system
with a 'chmod -R').

Having root's home in /home/root is a bad idea because it makes it
difficult to unmount /home, and root is homeless in maintenance mode.

My personal choice is to have /root as root's home directory.

Yours,
Laurenz Albe
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:33 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com