Operating System - HP-UX
1836772 Members
2335 Online
110109 Solutions
New Discussion

Re: Trusted System - any command to query the settings ?

 
SOLVED
Go to solution
S.Rider
Regular Advisor

Trusted System - any command to query the settings ?

I would like to check the
" sam - auditing & security - password format policies - User Specifies "
setting on all my systems. What's the command I can specify to display this parm ?
Ride Boldly Ride, but watch out for El Dorado's
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor

Re: Trusted System - any command to query the settings ?

cat /etc/default/security

That a portion of it.

Next you cat /tcb/files/auth/system/default

You will probably need to do a man prpwd to make sense of the last command. The system/default tcb entries define the settings unless overrideen by specific
settings in a particular user's tcb entry.
------------------------------------------
If this is SOX-related, some admins who will remain nameless have been known to simply cat those two files and present them as evidence w/o bothering to explain anything to the auditors --- who would then be forced to admit that they don't have a clue what they are looking at or choose to remain silent so the assumption is that they do know what they are loking at. Of course, I'm speaking completely hypothetically.
If it ain't broke, I can fix that.
Bill Hassell
Honored Contributor
Solution

Re: Trusted System - any command to query the settings ?

As Clay stated so eloquently, the data files and settings are indeed quite cryptic. So I wrote a script to decode all of this into a readable form. If you read the script, you'll see all the gyrations needed to summarize the settings.


Bill Hassell, sysadmin
Raj D.
Honored Contributor

Re: Trusted System - any command to query the settings ?

Rider,

/tcb/files/auth/system/default file will have the security policy settings .

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Rajeev  Shukla
Honored Contributor

Re: Trusted System - any command to query the settings ?

To see the systemwide policies you could use the following comand
/usr/lbin/getprdef -b -p -t

and to see the user specific you need to run

/usr/lbin/getprpw

Sundar_7
Honored Contributor

Re: Trusted System - any command to query the settings ?

Jay,

/usr/lbin/getprdef -b will tell you the password format policies (like whether user is allowed to pick the password or the system generates etc).

This is global or system wide.

To get the individual user settings

/usr/lbin/getprpw -m usrpick,syspnpw,rstrpw,nullpw,syschpw,sysltpw root

Sundar.
Learn What to do ,How to do and more importantly When to do ?