- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- reasons for /root as home directory for root
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2004 02:59 AM
тАО04-14-2004 02:59 AM
reasons for /root as home directory for root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2004 03:03 AM
тАО04-14-2004 03:03 AM
Re: reasons for /root as home directory for root
with best wishes
Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2004 03:11 AM
тАО04-14-2004 03:11 AM
Re: reasons for /root as home directory for root
The home directory does NOT have to be available when booting in single-user mode. On machines I have /home/root I have never had a problem booting in single-user mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2004 03:18 AM
тАО04-14-2004 03:18 AM
Re: reasons for /root as home directory for root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2004 03:19 AM
тАО04-14-2004 03:19 AM
Re: reasons for /root as home directory for root
If you have a /root directory you can protect it as you wich (e.g. chmod 700 /root). I don't know how far you can protect /.
All your .-files (.dt, .profile, .sh etcetera) will be in the new homedir of root i.s.o. /.
I recently switched my root homedir to /root.
The main reason is that I want a separate directory for root's files (documents and .-files), so I made it a homedir.
JP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2004 03:25 AM
тАО04-14-2004 03:25 AM
Re: reasons for /root as home directory for root
one simple reason is to prevent accidental destruction of your system.
let's suppose that you issue a
cd NOT_EXISTENT_DIRECTORY
in some system this will lead you to your home directory, or leave you there (in your home). It could be the first line of a script, for example...
What if the second command would be a "rm -rf *", to do a proper cleanup ?
There are also the other reasons, to prevent the filling up of /, of course...
Regards,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2004 03:37 AM
тАО04-14-2004 03:37 AM
Re: reasons for /root as home directory for root
The actual home directory is /root
The reasons are similar to those noted above. It removes clutter. Its there if the /home filesysem is gone, ie single user mode. Anything i really might need in single user mode, even if its basic documentation, thats were it goes, because in single user mode, or lvm maintenance mode, you may not be able to mount any other filesystems.
In /home/root I store bigger stuff, scripts in progress and stuff i probably won't need in single user mode.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2004 04:13 AM
тАО04-14-2004 04:13 AM
Re: reasons for /root as home directory for root
If you have .rhosts for root world readable in / directory, users will see what machine name, and username you grant access to. Then install a Linux box with the good name, create a user with the right name, and let's rsh... It might not be a security hole, but it might let see where are security potential holes.
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2004 04:26 AM
тАО04-14-2004 04:26 AM
Re: reasons for /root as home directory for root
Another trick that I've not tried is to make /home/root the home dir, and actually create a /home/root directory with the /home file system not mounted. The net affect is that when /home is mounted, things work as expected, and when /home is unmounted, the directory path is still really there.
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2004 06:46 PM
тАО04-14-2004 06:46 PM
Re: reasons for /root as home directory for root
ofcourse just creating /root and putting everything in there does not cut it. by default all home directories are accessable by all users, if you leave the defaults like that it is not that much more secure (chmod 700 like mentioned in previous post).
also it is nice to keep a seperate home for root not to clutter up your / view. (try doing an ls on / on a busy system running for +3 years)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2004 02:19 AM
тАО04-15-2004 02:19 AM
Re: reasons for /root as home directory for root
"Consider creating a root home directory that is not /. This keeps the user root dot files out of the / directory. Make sure it is on the root volume by not locating it under the mount point of the file system. A good name to use is /homeroot (not /home/root) as /home is often a mount point. This is especially important if you are using LVM or VxVM and /home is a seperate volme."
Not much there for a reason other than the dot files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2004 03:27 AM
тАО04-15-2004 03:27 AM
Re: reasons for /root as home directory for root
You have to make sure your umask is strong. As root you might want a private work area, /, /tmp, /var/tmp is not the place.
(a comment) I know that .sh_history is a nice. If you are careless and make it readable by world, It may help intruders look for possible weakness.
My root home is /. However, I do most of my work as my regular user ID and sudo to root. for the admin things. IF I camped out on the systems as root, I would have roots home /root.
Rory