Operating System - HP-UX
1833762 Members
2326 Online
110063 Solutions
New Discussion

password aging in a trsuted system

 
psn
Occasional Contributor

password aging in a trsuted system

Hi Guru's ,

I need to change the Maximum password aging from 180 to 90 . and minimum password aging to 0 .it is trusted systems

How to do this,

Regards,
psn
6 REPLIES 6
KMRT
Occasional Advisor

Re: password aging in a trsuted system

On trusted system, look at the file;
/etc/default/security

You can also do a man passwd command to gain help on the available options you can put into this file.

I also recommend looking at the HP document "Administering Your HP-UX Trusted System", you can try finding it at: http://docs.hp.com/en/B2355-90121/index.html

Hope this helps you psn.

Paul.
"The disavowed one
psn
Occasional Contributor

Re: password aging in a trsuted system

Hi Paul,

There is no such file security in /etc/default folder

# pwd
/etc/default
# ls -l
total 48
-r--r--r-- 1 bin bin 11 Mar 31 2004 fs
-r--r--r-- 1 root root 626 Jan 28 2004 nlspath
-r--r--r-- 1 bin bin 67 Nov 9 2000 useradd
#
Raj D.
Honored Contributor

Re: password aging in a trsuted system

Hi Psn,

Try setting the password againg from
SAM --> Accounts for Users and Groups -->Users --> Action --> Modify -->Modify Password Options :

Enjoy ,
Hth,

RAj.
" If u think u can , If u think u cannot , - You are always Right . "
Rick Garland
Honored Contributor

Re: password aging in a trsuted system

Do a 'man security' and you will see various options available, including passwd aging and complexity.

The security file does not exist by default. Use the touch command to create it. Then you can add the necessary items to the file.

touch /etc/default/security
rw-r--r-- root sys security

Steven E. Protter
Exalted Contributor

Re: password aging in a trsuted system

You can do it with sam.

You might be able to control this behavior with one of the parameter files in /etc/default

After doing it in sam take a look at the command log and you'll see how to do it on the command line.


min=7 #minimum days between passwod changes
max=180 #maxmimum password expiration
warn=8 # warn the user 7 days prior to expiration.

cp /etc/passwd /tmp

while read -r LINE
do
username=$(cat $LINE | awk -F: '{print $1}')
passwd -n $min -x $max -w $warn

done /tmp/passwd


rm -f /etc/passwd

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
Zigor Buruaga
Esteemed Contributor

Re: password aging in a trsuted system

Hi,

Try with:
SAM -> Auditing and security -> System Security Policies -> Passwd Aging policies

Regards,
Zigor