- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Newbie Question: Can I change the root user's ...
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
тАО09-15-2004 08:02 AM
тАО09-15-2004 08:02 AM
Newbie Question: Can I change the root user's home dir?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2004 08:07 AM
тАО09-15-2004 08:07 AM
Re: Newbie Question: Can I change the root user's home dir?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2004 08:16 AM - last edited on тАО09-16-2024 02:20 AM by support_s
тАО09-15-2004 08:16 AM - last edited on тАО09-16-2024 02:20 AM by support_s
Re: Newbie Question: Can I change the root user's home dir?
- Tags:
- storage controller
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2004 08:20 AM
тАО09-15-2004 08:20 AM
Re: Newbie Question: Can I change the root user's home dir?
You can find a good discussion here:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=117553
HTH.
Regards,
Sri Ram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2004 08:40 AM
тАО09-15-2004 08:40 AM
Re: Newbie Question: Can I change the root user's home dir?
But, in single user mode, /home may not be mounted.
Instead, put it in say /root like what you did.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2004 08:56 AM
тАО09-15-2004 08:56 AM
Re: Newbie Question: Can I change the root user's home dir?
My reaction is -- so what? I'm not trying to be rude or anything, but it doesn't really make any difference in single user mode. Having root home in /home/root does NOT impact going into single-user mode at all. You may not have your PATH set up and some other minor annoyances, but big deal. Manually mount /home and source your .profile then.
I still feel /home is safer. I honestly don't see where putting roots home in /root gains you anything. It's still in the / mount point and I can still fill up / if I do something stupid.
Just my 2 cents.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2004 08:58 AM
тАО09-15-2004 08:58 AM
Re: Newbie Question: Can I change the root user's home dir?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2004 09:01 AM
тАО09-15-2004 09:01 AM
Re: Newbie Question: Can I change the root user's home dir?
vipw edits the password file while setting the appropriate locks, and does any necessary processing after the password file is unlocked. If the password file is already being edited, you will be told to try again later. The vi editor is used unless the environment variable EDITOR indicates an alternate editor. vipw performs a number of consistency checks on the password entry for root, and does not allow a password file with an incorrectly formatted root entry to be installed.
HTH.
Regards,
Sri Ram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2004 09:01 AM
тАО09-15-2004 09:01 AM
Re: Newbie Question: Can I change the root user's home dir?
...from the vipw man page...
vipw edits the password file while setting the appropriate locks, and does any necessary processing after the password file is unlocked. If the password file is already being edited, you will be told to try again later. The vi editor is used unless the environment variable EDITOR indicates an alternate editor.
vipw performs a number of consistency checks on the password entry for root, and does not allow a password file with an incorrectly formatted root entry to be installed. To help reduce the possibility of leaving the system in an unbootable state, root's entry is not considered properly formatted if it has a user id that is not zero, or if it has a shell other than /sbin/sh, /usr/bin/csh, /usr/bin/ksh, or /usr/bin/sh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2004 11:00 AM
тАО09-15-2004 11:00 AM
Re: Newbie Question: Can I change the root user's home dir?
I do beleive it is not a good idea to have root's home directory in /home filesystem. I agree root's home directory should not be /, but I would prefer /root than /home/root.
One reason being, what if I want to do some maintenance on /home filesystem that requires unmounting the filesystem ?. Thanks for OnlineJFS, we dont have to unmount to extend/reduce the filesystem. But what if I want to do fsck on /home or what if I want to move my /home filesystem from one LV to another ?
What if /home is NFS mounted in an environment ? - You would still like to be able to login as root when your NFS server is unavailable ?. Yeah sure you can login as root even when the home directory is unavailable but what if I have the option set in /etc/default/security not to allow login if the home dir is missing ?
I am sure there are other scenarios that I can think of :-).
- Sundar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2004 12:06 PM
тАО09-15-2004 12:06 PM
Re: Newbie Question: Can I change the root user's home dir?
If it is an NFS or Automount environment, then I agree root should not be under /home. You also have a good point about the security setting, BUT if /home is not available is multi-user mode, you likely have other problems to worry about.
If you have to perform maintenance on /home, just cd out of it before you start. root would be easy to take care of. I would be more concerned with other users.
I still think it rather pointless to move from / to /root though. I just don't see the benefit.
I think this is an area where we can agree to disagree. :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2004 01:32 AM
тАО09-22-2004 01:32 AM
Re: Newbie Question: Can I change the root user's home dir?
What if in /etc/default/security, the following was set:
ABORT_LOGIN_ON_MISSING_HOMEDIR=1 and root's home is /home/root (/home being mounted).
Would root be prevented from loggin in if /home is not mounted?
At least with a home directory of /root (not mounted), if / is not mounted you have much bigger problems than not being able to logon.