1830938 Members
1775 Online
110017 Solutions
New Discussion

Re: getprpw question

 
SOLVED
Go to solution
dictum9
Super Advisor

getprpw question


I am trying to find the last time a user has logged in, and I am running getprpw but the output is always "llog=-1", why is that?


# /usr/lbin/getprpw -l -m llog root
llog=-1
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: getprpw question

The correct parameter is slogint

/usr/lbin/getprpw -m slogint userxyz
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: getprpw question

Hi:

According to the man pages (a wonderful source of information), a value of -1 indicates that the field has not been assigned a value in the database.

If you have basic user-login accounting enabled (i.e. '/var/adm/wtmp' has been created), you could use:

# last -R root

Regards!

...JRF...
John Kittel
Trusted Contributor

Re: getprpw question

This question is essentially the same one you asked here:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=980220

The answer was provided in 2 responses to that question, one explicitly, the other by reference to the getprpw man page.

Also, you might consider checking out these links:

http://66.34.90.71/ITRCForumsEtiquette/

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



dictum9
Super Advisor

Re: getprpw question

Thank you.. that worked.