- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: grp question
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
Forums
Discussions
Discussions
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
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
10-19-2006 03:36 PM
10-19-2006 03:36 PM
What is the quality procedure to change the uid or username in hp.userdmod seems to work fine for users home directory.but what happens to the dir and files that are owned by the user - will it be affected.Is there any option to usermod command that can take care of all the dir,files owned by the user who's uid is changing.thanks in advance .
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2006 05:01 PM
10-19-2006 05:01 PM
Re: grp question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2006 12:21 AM
10-20-2006 12:21 AM
SolutionIf you do indeed change the UID, then you'll need to manually change the ownership of the affected files and directories. This is difficult to automate since you'll have to search /home, /var/tmp and /tmp plus any other user-writable directories on your system.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2006 12:35 AM
10-20-2006 12:35 AM
Re: grp question
In cases like this, you may want to search more than just the user's home directory, as Bill notes. You will find these variations helpful:
# find /home /var /tmp -xdev -user 50
# find /home /var /tmp -xdev -user jrf
# find /home /var /tmp -xdev -nouser
# find /home /var /tmp -xdev -user 50 | xargs chown jrf
See the 'find' manpages for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2006 01:08 AM
10-20-2006 01:08 AM
Re: grp question
I want to add, that manual (re)setting of ownership IS required if
- you have NIS(+) AND
- there data with the previous userid on remote hosts, esp. not under automounted directories
Something like
find mydir -xdev -user
will do it.
mfG Peter