Read more
- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- how to change a UID
-
-
Categories
- Topics
- Hybrid IT with Cloud
- Mobile & IoT
- IT for Data & Analytics
- Transformation
- Strategy and Technology
- Products
- Cloud
- Integrated Systems
- Networking
- Servers and Operating Systems
- Services
- Storage
- Company
- Events
- Partner Solutions and Certifications
- Welcome
- Welcome
- Announcements
- Tips and Tricks
- Feedback
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- Converged Data Center Infrastructure
- Digital Transformation
- Grounded in the Cloud
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- Networking
- OEM Solutions
- Servers: The Right Compute
- Telecom IQ
- Transforming IT
-
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
-
Categories
-
Forums
-
Blogs
-
InformationEnglish
how to change a UID
SOLVED- 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
08-15-2011 11:41 AM
08-15-2011 11:41 AM
Hello,
I'm in the process of moving an application from an old HP server to a new one. After transferring most of the settings i've discovered that there is a new system process, sfmdb, that has been assigned the same user ID (103) as a process we use in our application to control file importing.
What's the best way to go about changing the UID of one or the other of these "users:? Thanks so much!
John H.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-15-2011 11:52 AM - edited 08-15-2011 11:54 AM
08-15-2011 11:52 AM - edited 08-15-2011 11:54 AM
SolutionHow many of your users are <= 1023?
You'll need to get new unused numbers. Then do a find -exec chown to change the ownership of all of the files owned by those users.
A good starting place would be the current home directories and search & change each. You may not care about searching elsewhere?
If you have only one user:
find / -name old-user-name -exec chown new-user-name {} +
If you have many, you should do the massive search once:
find / \( -name old-user-name1 -o -name old-user-name2 ... \) -exec ll -d {} + > file_list.out
Then write a script to do chown on each user's files in file_list.out
Do you use ACLs for these users?
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2018 Hewlett Packard Enterprise Development LP