- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- how to rename my home directory
-
- Forums
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- OEM Solutions
- Servers: The Right Compute
- Shifting to Software-Defined
- Telecom IQ
- Transforming IT
- Infrastructure Solutions German
- L’Avenir de l’IT
- IT e Trasformazione Digitale
- Enterprise Topics
- ИТ для нового стиля бизнеса
- Blogs
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Forums
-
Blogs
-
InformationEnglish
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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.
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2019 Hewlett Packard Enterprise Development LP