Operating System - HP-UX
1833813 Members
2462 Online
110063 Solutions
New Discussion

Re: How to do a "getprpw" on ~/system/default account

 
SOLVED
Go to solution
Jeffrey Davis_1
Frequent Advisor

How to do a "getprpw" on ~/system/default account

Hi all,
My system info: UX11.00 on an N-class.
I know I can do a 'getprpw' on general users to see what there settings are at in the trusted database. But I need to decipher what the system default settings are set at in the "/tcb/files/auth/system/default" account without having to go into sam and find it all.
If I go in and look at this literally, I can't decipher all the settings. (i.e. timet settings, etc)
Is there a quicker way to check this, so that when I run my report to check the settings of all users, I can see what the default settings are set at when they have some of their trusted system fields set to default levels?
I can't seem to uncover any info to reveal this.
Thanks in advance,
6 REPLIES 6
harry d brown jr
Honored Contributor

Re: How to do a "getprpw" on ~/system/default account

man prpwd:

u_acct_expire This field is the time_t time is seconds that the account will be usable. After this time interval the user will no longer be allowed to login. This field is different from the u_life field in that the u_life field is the time from the last password change. u_acct_expire is not affected by the changing of the password.

do a /usr/lbin/getprpw root

live free or die
harry

Live Free or Die
harry d brown jr
Honored Contributor
Solution

Re: How to do a "getprpw" on ~/system/default account

How about this:

# /usr/lbin/getprdef -m
bootpw=NO, mintm=0, maxpwln=8, exptm=182, lftm=196, llog=15, expwarn=7, usrpick=YES, syspnpw=YES, rstrpw=NO, nullpw=NO, syschpw=NO, sysltpw=YES, umaxlntr=3, tmaxlntr=10, dlylntr=2, lntmout=0
#


??

live free or die
harry
Live Free or Die
Jeffrey Davis_1
Frequent Advisor

Re: How to do a "getprpw" on ~/system/default account

Hi Harry. As I understand it, the 'root' account and the 'default' account are not the same. Therefore, I could not check to see what all the default entries are set to.
Unless I'm incorrect, thanks for the input.
harry d brown jr
Honored Contributor

Re: How to do a "getprpw" on ~/system/default account

Or better yet?

http://www.hpworks.org.uk/newsletter/19/trustlist.txt


live free or die
harry
Live Free or Die
Craig Rants
Honored Contributor

Re: How to do a "getprpw" on ~/system/default account

Use expr to find the day value, lets use the u_life#10368000

NUMBER=1036800

DAYS=`expr $NUMBER / 60 / 60 / 24`

echo $DAYS 12

Thus that second value equates to 12 days.

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
harry d brown jr
Honored Contributor

Re: How to do a "getprpw" on ~/system/default account

jeffery,

using that link I posted, cut and paste the second "listing", it provides this type of output for the default account:

bootpw=NO exptm=182
usrpick=YES lftm=196
syspnpw=YES llog=15
rstrpw=NO expwarn=7
nullpw=NO umaxlntr=3
syschpw=NO tmaxlntr=10
sysltpw=YES dlylntr=2
mintm=0 lntmout=0
#


live free or die
harry
Live Free or Die