- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Add user or group failed
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
08-17-2002 05:47 AM
08-17-2002 05:47 AM
add the user "fgsd". There was an unknown error in
"/usr/sam/lbin/useradd.sam". The output from this command was:
/etc/passwd file busy -- try again
I only have 2 user license.
Any ideas?
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2002 06:35 AM
08-17-2002 06:35 AM
Re: Add user or group failed
This will give you what or who claims the file by username or procesnumber.
Second try:
Edit /etc/passwd with vi and try to save the file.. can you?
Add name to /etc/group and create it's homedirectory.
Any success on this?
Ceesjan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2002 06:54 AM
08-17-2002 06:54 AM
Re: Add user or group failed
First verify that no other process is attempting to modify the password file. You can do a simple check with 'fuser' (or certainly with 'lsof'):
# fuser -f /etc/passwd
If no other entity appears to be using the /etc/passwd file, there may have been a previous operation that aborted leaving the lock file '/etc/ptmp' present.
If no processes are using the passwd file an 'etc/ptmp' is present, remove '/etc/ptmp'. This should repair your inability to perform maintenance.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2002 11:20 AM
08-17-2002 11:20 AM
Re: Add user or group failed
If I'm not mistaken you can upgrade your user license to unlimited for free.
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=UNLIMUSERLIC
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2002 01:42 PM
08-17-2002 01:42 PM
Re: Add user or group failed
The two-user license misleading. The console counts as one user when logged into; a serial port counts one user for every port with a login; but logins via a network (LAN), regardless of number, count only as *one* user.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2002 04:48 PM
08-17-2002 04:48 PM
Re: Add user or group failed
to kill the process using the passwd file.
But problem still exists. There is no ptmp file.
I can edit the group file , but did not try the passwd yet.
How do I install the unlimited license anyway?
Thank you all!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2002 05:10 PM
08-17-2002 05:10 PM
Re: Add user or group failed
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2002 07:09 PM
08-17-2002 07:09 PM
Re: Add user or group failed
What can I do next?
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2002 07:15 PM
08-17-2002 07:15 PM
Re: Add user or group failed
# fuser -f /etc/passwd
/etc/passwd: 920o
Even I killed the process, I still can not add users.
Any idea?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2002 07:17 PM
08-17-2002 07:17 PM
Re: Add user or group failed
# fuser -f /etc/passwd
/etc/passwd: 920o
Even I killed the process, I still can not add users.
There is a process here using the pw file:
root 920 1 0 22:58:49 ? 0:00 /usr/sbin/pwgrd
Any idea?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2002 08:16 PM
08-17-2002 08:16 PM
Re: Add user or group failed
Steve,
Have you tried shutting down and rebooting the server?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2002 08:19 PM
08-17-2002 08:19 PM
Re: Add user or group failed
http://bizforums.itrc.hp.com/cm/QuestionAnswer/0,,0x67998cc5e03fd6118fff0090279cd0f9,00.html
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2002 12:12 AM
08-18-2002 12:12 AM
Re: Add user or group failed
can happen. I think James Ferguson was on
the right track with his /etc/ptmp comments,
but it turns out there are several ways to lock
the passwd file. It would help to know
whether you are running NIS, NIS+, trusted
mode, etc. That would let us more quickly
figure out which direction to look in.
The lckpwdf() man page states that the file
/etc/.pwd.lock is also used for locking
the password file, and useradd source showscalls to this function. Do you have a file
called /etc/.pwd.lock?
lckpwdf(3C) lckpwdf(3C)
NAME
lckpwdf(), ulckpwdf() - control access to /etc/passwd file
SYNOPSIS
#include
int lckpwdf (void)
int ulckpwdf (void)
DESCRIPTION
The lckpwdf() and ulckpwdf() routines are used to coordinate
modification access to the password file /etc/passwd and to the secure
password entries. The lock file used by these two routines is
/etc/.pwd.lock. A process first calls lckpwdf() to gain exclusive
access rights for password modification. When modifications are
complete, ulckpwdf() is called to release the lock on /etc/.pwd.lock.
This mechanism prevents simultaneous modification of password files or
entries.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2002 07:05 AM
08-18-2002 07:05 AM
Re: Add user or group failed
There is no /etc/.pwd.lock file or /etc/ptmp file.
I am not using NIS or NIS+ either.
What else info would be helpful to solve this?
And Harry, I have read the thread you gave. But so far I am still having the problem.
Thank you all for your reply!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2002 07:17 AM
08-18-2002 07:17 AM
SolutionYou indicated that '/etc/.pwd.lock' isn't present on your system. It needs to be there. Do this to create it and then retry the user addition:
# touch /etc/.pwd.lock
# chmod 400 /etc/.pwd.lock
# chown root:sys /etc/.pwd.lock
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2002 08:23 AM
08-18-2002 08:23 AM
Re: Add user or group failed
But why was that happening? How come the .passwd.lock file was not there?
Thannk you guys all!