- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: System insists UID duplicated but not in /etc/...
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
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
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
тАО05-17-2007 04:24 AM
тАО05-17-2007 04:24 AM
User ID "400" is already used.
Are you sure you want to reuse it?
I've checked the /etc/passwd file and the user account listing in SAM and neither show a user with this UID. If I try to add the account using the 'useradd' command, I get a similar error:
UID 400 is not unique
Question1: Why is the system insisting that UID 400 is in use when it is not shown in the /etc/passwd file?
Question2: Where does SAM get the next available UID from? Is this something that can be changed or reset to a specific starting UID?
Thanks for any help.
PS - This system is running HP-UX 11.11 in a 8x npar on a PA 8700 Superdome.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2007 04:30 AM
тАО05-17-2007 04:30 AM
Solution1. Perhaps UID 400 did exist and still has a process open or a file owned.
2. Should really use a script. But useradd or sam seem to pick the lowest available UID. Example we leave our users at uid 1000 and up. There are lots of open users in the under 1000 range. sam and useradd default to the lowest available id in the lower range. Our NIS setup uses an 11.00 box (shame on us, I know). Your results may vary based on OS version and whether or not you use NIS.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2007 04:40 AM
тАО05-17-2007 04:40 AM
Re: System insists UID duplicated but not in /etc/passwd
Try running:
# pwck
(This will check /etc/passwd for problems)
If your system is trusted run the following command to check the protected password db (the stuff in /tcb/files/auth/*):
# pwck -s
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2007 04:43 AM
тАО05-17-2007 04:43 AM
Re: System insists UID duplicated but not in /etc/passwd
~cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2007 04:48 AM
тАО05-17-2007 04:48 AM
Re: System insists UID duplicated but not in /etc/passwd
~cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2007 06:55 AM
тАО05-17-2007 06:55 AM
Re: System insists UID duplicated but not in /etc/passwd
We found the homedir, removed it and the error messages went away. We then created the new user.
Also, it does seem that the lowest available UID is what is used by SAM for automatic UID assignment. I'm gonna continue to check to see if that can be set manually to a higher starting UID.
Thanks again for all the suggestions. The command 'pwck -s' also showed many inconsistencies that we'll now be cleaning up. We aren't using NIS but the suggestion was still a good one. Great suggestions all. Much appreciated.