- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: unable to add new users
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
04-19-2006 02:19 AM
04-19-2006 02:19 AM
Hi ,
We are unable to create new users in to one of our HP -Ux server .It is failing with following error .
# useradd u41893
/etc/passwd file does not exist
Any help will be appreciated .
Thanks in advance
ajeesh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2006 02:24 AM
04-19-2006 02:24 AM
Re: unable to add new users
Worth trying ls -l /etc/passwd to check the password file does exist.
If not then try restoring it from a recent backup.
S.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2006 02:24 AM
04-19-2006 02:24 AM
Re: unable to add new users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2006 02:25 AM
04-19-2006 02:25 AM
Re: unable to add new users
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2006 02:27 AM
04-19-2006 02:27 AM
Re: unable to add new users
You need to restore a copy from somewhere, being you have made backup copies on the system or from tape.
You can get a basic passwd file from /usr/newconfig/etc/passwd but this will not have the users in this file. It will allow you to reboot safely and login as root.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2006 02:28 AM
04-19-2006 02:28 AM
Re: unable to add new users
Yes the passwd file exist on /etc/passwd.And we tried to restore the old passwd file .after that also it is failing with same error.This is a trusted system and O.S version is 11.11
Thanks
ajeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2006 02:35 AM
04-19-2006 02:35 AM
Re: unable to add new users
Does any of the info in this thread help?
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=728419
Might be worth a read.
S.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2006 02:50 AM
04-19-2006 02:50 AM
Re: unable to add new users
Do a 'cat -v' on the passwd file to see if there are any non-printing characters in the file. Maybe the file is corrupt?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2006 03:06 AM
04-19-2006 03:06 AM
Re: unable to add new users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2006 03:10 AM
04-19-2006 03:10 AM
Re: unable to add new users
or is this a bit of a cryptical message for "can not be locked" can you check if below file exists on your system?
# ls -la /etc/.pwd.lock
-r-------- 1 root sys 0 Sep 23 1999 /etc/.pwd.lock
if not, could please add your HPUX version?
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2006 03:25 AM
04-19-2006 03:25 AM
Re: unable to add new users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2006 03:41 AM
04-19-2006 03:41 AM
Re: unable to add new users
The owner should be root
and the group should be sys
with -r--r--r-- permission.
Regards,
Siva.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2006 03:51 AM
04-19-2006 03:51 AM
Re: unable to add new users
By the way, is this a trusted system?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2006 04:03 AM
04-19-2006 04:03 AM
Re: unable to add new users
The patch was not installed and this is a trusted system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2006 09:02 PM
04-19-2006 09:02 PM
SolutionI think there could be 3 possible solutions.
-1- trusted system password database problem
try
# authck -pv
# pwconv
-2- your useradd conf file is corrupted.
# mv /etc/default/useradd /etc/default/old.useradd
# cp /usr/newconfig/etc/default/useradd /etc/default/useradd
-3-
Although your problem is not described in patch PHCO_33142, there is fix for various useradd problems.
---
( SR:8606430859 CR:JAGaf90305 )
Under certain scenarios, useradd/usermod/userdel are not working as expected.
---
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 04:05 AM
04-20-2006 04:05 AM
Re: unable to add new users
the command authck -p worked .now we are able to add new users in the server .
Thanks all
Ajeesh