System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Which files on Hpux NonTrusted are updated when fired passwd -x command for an user

 
SOLVED
Go to solution
Basi Reddy
Occasional Contributor

Which files on Hpux NonTrusted are updated when fired passwd -x command for an user

I'm not able to find the files which are affected when I execute the passwd -x command on my NonTrusted Hpux machine.

OS version: B.11.11 U 9000/800 2865163845 unlimited-user license

Note: I do not have following files in the hpux machine.

/etc/shadow
/.secure/etc/passwd
/tcb/files/auth
/etc/default/security

Any help/pointer in this regard is highly appreciated.

Thank you
6 REPLIES

Re: Which files on Hpux NonTrusted are updated when fired passwd -x command for an user

If you are using the default password scheme, only /etc/passwd gets changed.
(Assuming you aren't using NIS.)
Tingli
Esteemed Contributor

Re: Which files on Hpux NonTrusted are updated when fired passwd -x command for an user

If you use shadow password then file /etc/shadow is changed when you run passwd -x.

See: http://docs.hp.com/en/B2355-90950/ch08s15.html
Steven E. Protter
Exalted Contributor

Re: Which files on Hpux NonTrusted are updated when fired passwd -x command for an user

Shalom,

If you are getting a message like this, your system may be trusted, or possibly have a problem.

/tcb/files/auth is part of trusted syste4m infrastructure.

/etc/shadow is implemented when you install the shadow password depot available at http://software.hp.com

/etc/default/security is as the name implies the keeper of security defaults. That file needs to be on the system no matter the circumstances.

So I have to ask, what has happened to this system? It is highly inadvisable to run shadow passwords and trusted system at the same time. Each has its own authentication/storage scheme.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Basi Reddy
Occasional Contributor

Re: Which files on Hpux NonTrusted are updated when fired passwd -x command for an user

Its not a NIS nor a trusted Hpux box.

Output of the passwd commands:
passwd -x 3 -n 9 test1
argument rounded up to nearest week
argument rounded up to nearest week

passwd -s test1
test1 PS 12/11/08 14 7

From passwd file
cat /etc/passwd | grep test1
test1:KciRFSYBXgr62,/0kT:107:20::/home/test1:/sbin/sh

Is the password last changed date, min and max values are encoded in the passwd file for an user?

Some of the forum threads related to the same question says /0kT in passwd file is to be decoded.
Solution

Re: Which files on Hpux NonTrusted are updated when fired passwd -x command for an user

>passwd -x 3 -n 9 test1

Any reason you want the max (-x) smaller than the min (-n)? This means the user can't change the password.

>test1:KciRFSYBXgr62,/0kT:107:20::/home/test1:/sbin/sh
>Is the password last changed date, min and max values are encoded in the passwd file for an user?

Exactly:
$ passwd_expires /0kT
Only superuser can change the password
Max weeks to expire: 1
Min weeks to reset: 2
Weeks since 1970: 2032
Password was reset on: Wed Dec 10 16:00:00 2008
Password expires on: Wed Dec 17 16:00:00 2008

I'm not sure if the other fields are valid after the "Only superuser can change the password". passwd(4) isn't clear.
Basi Reddy
Occasional Contributor

Re: Which files on Hpux NonTrusted are updated when fired passwd -x command for an user

there is no significant reason for min is greater than max. Just provided an example. with different figures for min and max.

I've got the required answer from you guys.
Really appreciate your help.