Operating System - HP-UX
1754014 Members
5888 Online
108811 Solutions
New Discussion

Re: display/check Password attributes on HP-UX 11 non trusted NIS

 
Saurabh Gupta
New Member

display/check Password attributes on HP-UX 11 non trusted NIS

Hi all
How could I check/display the password attributes : MaxAge, MinAge, WarnAge on an HP-UX 11.0 box. this system is non-trusted and configured as NIS, so no shadow file and tcb/files/auth...
Please help

Thanks in advance
Saurabh

8 REPLIES 8
Sunil Sharma_1
Honored Contributor

Re: display/check Password attributes on HP-UX 11 non trusted NIS

Hi,

use
passwd -s or
passwd -as


Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
john kingsley
Honored Contributor

Re: display/check Password attributes on HP-UX 11 non trusted NIS

You can also use
logins -x -l
Franky_1
Respected Contributor

Re: display/check Password attributes on HP-UX 11 non trusted NIS

Hi,

i also wanted to propose John's solution :

logins -xl but i had difficulties to login :-(

Regards

Franky
Don't worry be happy
Muthukumar_5
Honored Contributor

Re: display/check Password attributes on HP-UX 11 non trusted NIS

Execute passwd -s so that you will get information of the user as,
name status mm/dd/yy min max warn

This format specially for non-trusted mode with nisplus respository and with no user restriction's.

Or you can use logins command there as,
logins -a -l

And more, you can use sam too to get the correspoding user informations there.
Easy to suggest when don't know about the problem!
john kingsley
Honored Contributor

Re: display/check Password attributes on HP-UX 11 non trusted NIS

"passwd -s -a" does provide this information in an easier to read format, but it will only gives this information for users included in the local /etc/passwd file, or if your running NIS+. So, this command is only useful if it can be run on the NIS master, and if only the /etc/passwd file is used. The logins command will work from any of the NIS clients.
Rachael1
Occasional Visitor

Re: display/check Password attributes on HP-UX 11 non trusted NIS


@john kingsley wrote:
"passwd -s -a" does provide this information in an easier to read format, but it will only gives this information for users included in the local /etc/passwd file, or if your running NIS+. So, this command is only useful if it can be run on the NIS master, and if only the /etc/passwd file is used. The logins command will work from any of the NIS clients.

Hi,

 

What is the date returned from the passwd -s or the logins -x -l commands, i assumed it is expiration date but man page does n't explain.

 

Thanks,

 

Rachael

Dennis Handly
Acclaimed Contributor

Re: display/check Password attributes on HP-UX 11 non trusted NIS

>the logins -x -l commands, I assumed it is expiration date but man page doesn't explain.

 

It is clear: date of last change

 

passwd(1m):  Here it isn't clear:

name status    mm/dd/yy  min  max  warn

 

Most likely the same "date of last change".

 

Rachael1
Occasional Visitor

Re: display/check Password attributes on HP-UX 11 non trusted NIS


@Dennis Handly wrote:

>the logins -x -l commands, I assumed it is expiration date but man page doesn't explain.

 

It is clear: date of last change

 

passwd(1m):  Here it isn't clear:

name status    mm/dd/yy  min  max  warn

 

Most likely the same "date of last change".

 


Thanks Dennis, i see it now.