- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to rename my home directory
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
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
тАО11-25-2010 04:39 AM
тАО11-25-2010 04:39 AM
how to rename my home directory
example
/home/rajesh
i want to change /home/rajeshd
kindly help rajesh account is normal user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2010 04:54 AM
тАО11-25-2010 04:54 AM
Re: how to rename my home directory
1) Rename your directory with: mv /home/rajesh /home/rajeshd
2) Update /etc/passwd to point to the new one.
usermod(1m) should probably do the latter, not sure about the former. You can also use vipw(1m) to edit /etc/passwd.
>rajesh account is normal user
Typically the user name matches the home directory, did you want to change that too?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2010 04:56 AM
тАО11-25-2010 04:56 AM
Re: how to rename my home directory
The usermod command can be used to modify user specific settings. the "-d" option is used to set the users home directory.
The command is below:
"usermod -d /home/rajeshd rajesh"
Regards
Emmanuel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2010 05:15 AM
тАО11-25-2010 05:15 AM
Re: how to rename my home directory
ln /home/rajesh /home/rajeshd
As of that moment, you can use both names, as they will be translated to the same inode-number. Over time, the link that becomes less used can then be removed, again by the owner of the /home directory.
the usermod command is probably the best method, but this is typically a job for the system administrator ...
Kind regards
Edwin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2010 05:39 AM
тАО11-25-2010 05:39 AM
Re: how to rename my home directory
ln /home/rajesh /home/rajeshd
That's a good trick since only root can do that and not with ln(1). A symlink would work.
>but this is typically a job for the system administrator
Only the sysadmin can do these things.