- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Why does usermod not move home directory?
Operating System - HP-UX
1820485
Members
2446
Online
109624
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО07-23-2004 03:13 AM
тАО07-23-2004 03:13 AM
Why does usermod not move home directory?
In HP-UX 11.0 and 11.11 when using command:
usermod -d /home/user2 -m -l user2 user1
It creates a copy of /home/user1 instead of moving it to /home/user2.
The man page states it "moves" the directory, but it really just copies. Works fine in Solaris though.
usermod -d /home/user2 -m -l user2 user1
It creates a copy of /home/user1 instead of moving it to /home/user2.
The man page states it "moves" the directory, but it really just copies. Works fine in Solaris though.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2004 03:39 AM
тАО07-23-2004 03:39 AM
Re: Why does usermod not move home directory?
According to the details on this link
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=565009
usermod wasn't desgined to do this (on HP-UX). As you say, it works on Solaris.
Checking the patch database gives no result, so it looks like it's not been patched yet (if HP have any plans to do so).
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=565009
usermod wasn't desgined to do this (on HP-UX). As you say, it works on Solaris.
Checking the patch database gives no result, so it looks like it's not been patched yet (if HP have any plans to do so).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2004 04:34 AM
тАО07-23-2004 04:34 AM
Re: Why does usermod not move home directory?
Brian,
Agree that it's a little bit confusing. HP-UX man page tells it does so :
"-m Move the user's home directory to the directory specified with the -d option. If the home directory exists, the directory must have read and execute permission by group, where group is the primary group of the login."
Anyway, Chris is right : it doesn't. :)
Regards,
Fred
Agree that it's a little bit confusing. HP-UX man page tells it does so :
"-m Move the user's home directory to the directory specified with the -d option. If the home directory exists, the directory must have read and execute permission by group, where group is the primary group of the login."
Anyway, Chris is right : it doesn't. :)
Regards,
Fred
--
"Reality is just a point of view." (P. K. D.)
"Reality is just a point of view." (P. K. D.)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP