Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

passwd command exists with db_lock.share permission denied

Ashish Jain
Advisor

passwd command exists with db_lock.share permission denied


unable to change password

OS Tru 64 5.1B
---------------------------------------------------------------
Probem description

whale /root# passwd
passwd: /var/tcb/files/__db_lock.share: Permission denied
passwd: /var/tcb/files/__db_lock.share: Permission denied
passwd: /var/tcb/files/__db_lock.share: Permission denied
Change password: root: unknown user.

---------------------------------------------------------------
Observations

whale /root#uname -a
OSF1 whale.cso.touchtelindia.com V5.1 2650 alpha

whale /root#id
uid=0(root) gid=1(daemon) groups=0(system),3(mem),7(terminal),9(opr),12(lp)

whale /root#cat /etc/passwd | grep root
root:*:0:1:system PRIVILEGED account:/root:/sbin/ksh

whale /root# ls -l /
drwxr-xr-x 34 root system 8192 Feb 18 10:16 var
whale /root# ls -l /var
drwxr-xr-x 4 root system 8192 Nov 21 00:11 tcb
whale /root# ls -l /var/tcb
drwxr-xr-x 5 root system 8192 Apr 22 11:49 files

whale /root#ls -l /var/tcb/files
total 1441
-rw-rw---- 1 auth auth 16384 Oct 17 2002 .new..auth.db
-rw-rw---- 1 auth auth 16384 Oct 17 2002 .proto..auth.db
-r--r----- 1 auth auth 115 Oct 17 2002 DB_CONFIG
-rw-r----- 1 root system 1335296 Apr 26 10:59 __db_lock.share
-rw-r----- 1 root system 327680 Apr 12 14:41 __db_mpool.share
-rw-r----- 1 root system 4096 Apr 12 14:41 __db_txn.share
-rw-rw---- 1 auth auth 16384 Apr 26 10:44 auth.db
drwxr-s--- 2 auth auth 8192 Apr 12 14:41 dblogs
drwxr-s--- 2 auth auth 8192 Nov 21 00:11 dbtmp
drwxr-xr-x 2 root system 8192 Nov 21 00:11 subsys
13 REPLIES
Venkatesh BL
Honored Contributor

Re: passwd command exists with db_lock.share permission denied

what is the patch version?
Ashish Jain
Advisor

Re: passwd command exists with db_lock.share permission denied

Hi

The patch kit is PK3

Patches installed on the system came from following patch kits:
--------------------------------------------------------------

- T64V51BB1AS0001-20021229 OSF540
- T64V51BB1AS0001-20021229 TCR540
- T64V51BB24AS0003-20030929 OSF540
- T64V51BB24AS0003-20030929 TCR540
amrelsayed
Frequent Advisor

Re: passwd command exists with db_lock.share permission denied

dear friend,

try to rename the folloing files and try your command again:


_db_lock.share
_db_mpool.share
_db_txn.share

or move them in anther usless directory.

all the best
Try To Be Smart
Rick Collette_2
Occasional Advisor

Re: passwd command exists with db_lock.share permission denied

I am also having this issue.

Since this is a production machine, I can't move these files around without know what the impact would be.. any help in this matter is greatly appreciated.

Thanks!
Ann Majeske
Honored Contributor

Re: passwd command exists with db_lock.share permission denied

I'm not sure if this will help, but try stopping the prpasswdd daemon. You can do this with the command:
/sbin/init.d/prpasswd stop

The prpasswdd is basically a performance enhancement, you don't need it on the system. If the problem is that the prpasswdd has this file locked, stopping the prpasswdd may help.

If you then want to restart the prpasswdd you can use the command:
/sbin/init.d/prpasswd start

Ann
Rick Collette_2
Occasional Advisor

Re: passwd command exists with db_lock.share permission denied

prpasswd was not running - so I doublechecked, then started it. I still get the same message. Just in case this did something to re-init the pw db, I killed the process again, and still no go.

Any other helpful hints? I'm pulling my hair out here.. Luckily there are only like 3 primary users of this machine, and root can change the users passwords no problem.
Ivan Ferreira
Honored Contributor

Re: passwd command exists with db_lock.share permission denied

Try running authck -a.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Rick Collette_2
Occasional Advisor

Re: passwd command exists with db_lock.share permission denied

# authck -a
tsh appears in Protected Password database but cannot be retrieved
with getespwent()
tsh not listed in /etc/passwd, but is in the Protected Password database.
#
Ivan Ferreira
Honored Contributor

Re: passwd command exists with db_lock.share permission denied

What are the permissions for the /etc/passwd file?

Is the /sbin/ksh shell there?

Do you get any ouput when you run:

edauth -g root

It seems that the system cannot identify the root user.

passwd: /var/tcb/files/__db_lock.share: Permission denied
Change password: root: unknown user.

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Rick Collette_2
Occasional Advisor

Re: passwd command exists with db_lock.share permission denied

on mine, root can change users pw's, but the users themselves cannot.

Ivan Ferreira
Honored Contributor

Re: passwd command exists with db_lock.share permission denied

Is the SUID bit on in the passwd file?

ls -la /usr/bin/passwd
-rws--x--x 3 root bin 33024 Oct 17 2002 /usr/bin/passwd
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Rick Collette_2
Occasional Advisor

Re: passwd command exists with db_lock.share permission denied

oh man. Ok - so the sotry is this: the guy or gal who built this system had chmodded -R some dirs to 0755.

the SUID flag fixed the problem.

Thanks a ton!
Ivan Ferreira
Honored Contributor

Re: passwd command exists with db_lock.share permission denied

I'm glad to help you.

See also:

http://forums1.itrc.hp.com/service/forums/helptips.do?#28
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?