1824636 Members
5038 Online
109672 Solutions
New Discussion юеВ

Re: Creating new group

 
Luis Franco
Occasional Advisor

Creating new group

I am usin SAM in order to create a new user group. I got the following error:

/etc/passwd File Busy --- try again.

Any ideas.

Thanks in advance for your help!!!
11 REPLIES 11
Jean-Luc Oudart
Honored Contributor

Re: Creating new group

Check who is using this file :
as root :
fuser -fu /etc/passwd
or use lsof if you have it installed on your server

Regards,
Jean-Luc
fiat lux
Hazem Mahmoud_3
Respected Contributor

Re: Creating new group

Do the following:

# fuser /etc/passwd

This will tell you which process ID is accessing the file.

-Hazem
Juergen Tappe
Valued Contributor

Re: Creating new group

1. Check if there are proccesses running like
changing content of passwd file i.e.
ps -ef | grep passwd
ps -ef | grep vipw

or is another SAM Session running elsewhere?

2. If you cannot find anything check if the file /etc/ptmp is existing.
Tis file is used in HP-UX to block the password file for exclusive usage.

3. If you are sure nobody else ir realy using your password file.
rm /etc/ptmp
and try to create your group again.
Working together
Luis Franco
Occasional Advisor

Re: Creating new group

fuser -fs /etc/passwd returns: 1155o(root)

The file /etc/ptmp does not exits.

Juergen Tappe
Valued Contributor

Re: Creating new group

OK whats the output of ps -fp 1155?

post the result and we'll see if we can kill it.
Working together
Luis Franco
Occasional Advisor

Re: Creating new group

ps -fs 1155 --->

root 1155 1 0 Apr 15 ? 0:19 /usr/sbin/pwgrd
G. Vrijhoeven
Honored Contributor

Re: Creating new group

Hi Luis,

That is the passwd caching deamon.

You could try a:
# kill -HUP 1155
and try again.

Or just kill the process.
you can always restart it as root:
#/usr/sbin/pwgrd

You could check the patch database for some patches.
http://www4.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main|patch.breadcrumb.pdb|patch.breadcrumb.search|&patchid=PHCO_28007&context=hpux:800:11:11

HTH,

Gideon
Luis Franco
Occasional Advisor

Re: Creating new group

I did the kill -HUP but still I can not create a new user group.

Dani Seely
Valued Contributor

Re: Creating new group

Any reason why you have to do this through SAM? It's possible that there are additional SAM processes running. Suggest the following:

1) Exit all the way out of SAM and check for other SAM processes running (ps -ef |grep -i sam). If SAM processes are running, check to see who it is that is running this or kill the process(es).

2) If no SAM processes were running you may want to reboot ... this would be the cleanest way of removing the file lock rather than killing processes at random.

3) If you don't HAVE to use SAM, or if the problem still persists, try using the command line to create your new group. Look up the syntax and options for "groupadd" and see if you can create the group from the command line (you can specify the group name, the GID, etc. all at the command line just as you can through SAM).
Together We Stand!
Luis Franco
Occasional Advisor

Re: Creating new group

The file /etc/.pwd.lock was mising.
I did create it, and now I am able to create user groups using SAM.

Thanks all for your help!!!
Dani Seely
Valued Contributor

Re: Creating new group

Hello Luis,
I assume this is your first experience on the ITRC forum as you did not award points to the forumers for the answers you were provided. May I suggest that you take a look at the following link to learn about the points system in use here. Thanks.

http://forums1.itrc.hp.com/service/forums/helptips.do?#28

Please read the article, assess the assistance you were provided by the forumers, then reward them. Thanks!
Together We Stand!