- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- useradd reports '/etc/passwd file busy -- try agai...
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
11-17-2003 07:06 AM
11-17-2003 07:06 AM
useradd reports '/etc/passwd file busy -- try again'
is there anything that can be done to fix this other than a reboot and going to single user mode. i am running on os 10.20 on a model
9000/715
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2003 07:12 AM
11-17-2003 07:12 AM
Re: useradd reports '/etc/passwd file busy -- try again'
fuser -cu /
See if there are any processes on the root fs. Check them by number as to what they are dong.
bdf /
If the root fs is too close to full or full this behavior can result.
If yo ucan find nothing, reboot the machine.
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
11-17-2003 07:31 AM
11-17-2003 07:31 AM
Re: useradd reports '/etc/passwd file busy -- try again'
Try this instead:
fuser -fu /etc/passwd
My output follows... for instance:
# fuser -fu /etc/passwd
# /etc/passwd 1785o(root)
# ps -ef |grep 1785 |grep -v grep
# root 1785 1 0 Nov 16 ? 0:02 /usr/sbin/pwgrd
If you see something other than the pwgrd process,
find out what it is, as it may be your problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2003 07:42 AM
11-17-2003 07:42 AM
Re: useradd reports '/etc/passwd file busy -- try again'
When you access the password file, the /etc/.pwd.lock file is created, so that other processes do not acccess the file. It is possible the file was not deleted the last time /etc/passwd was accessed.
Maybe that is what is showing it as busy.
Also, check for any vipw that is zombied.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2003 12:47 AM
11-18-2003 12:47 AM
Re: useradd reports '/etc/passwd file busy -- try again'
JL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2003 05:37 AM
11-18-2003 05:37 AM
Re: useradd reports '/etc/passwd file busy -- try again'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2003 06:04 AM
11-18-2003 06:04 AM
Re: useradd reports '/etc/passwd file busy -- try again'
This is accomplished by creating and locking the file /etc/.pwd.lock using lockf(2). Check for that file and if its busy.
# fuser /etc/.pwd.lock
Best regards...
Dietmar.