- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- User Migration to LDAP
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
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
12-06-2007 11:44 AM
12-06-2007 11:44 AM
Thanks,
Brian
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2007 11:55 AM
12-06-2007 11:55 AM
Re: User Migration to LDAP
Aligning UIDs (and/or GIDs) with their mapped names is really a matter of finding and changing the numeric values (carefully in all places) to match a modified login database. To this end, 'find' is your friend:
# find / -nouser
# find / -nogroup
# find / -user 1234
# find / -group 333
Having evaulated that (for example) user (uid) "1234" can safely have its files and directories changed to uid=5678, you can do:
# find / -user 1234 -exec chown 5678 {} \+
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2007 12:00 PM
12-06-2007 12:00 PM
Re: User Migration to LDAP
Thanks,
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2007 12:03 PM
12-06-2007 12:03 PM
Re: User Migration to LDAP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2007 12:09 PM
12-06-2007 12:09 PM
SolutionMost certainly, running 'find' and visiting (and internally stat()ing EVERY directory and file found is very performance intensive!
If at all possible, specify only the directories or mountpoints that you know hold items of interest:
# find /app /oracle /home -user 1234 ...
I would actually suggest that you output the names of the files and directories that need to be changed into a file that you can edit to actually execute 'chown' commands.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2007 12:13 PM
12-06-2007 12:13 PM
Re: User Migration to LDAP
I will try this on our test server and let you know how things workout. And yes I will produce and file that I can run the chown against.
Thanks for your help
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2007 10:36 AM
12-19-2007 10:36 AM
Re: User Migration to LDAP
find /sas/sasuser /tmp -user 563 -exec chown 1563 {} \+
Thanks so much for your help.