passwd policies


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers passwd policies
# 1  
Old 10-10-2003
passwd policies

Hi Guys,

i want to ask how i can add a special policies for users.
for example i want so say that each user must chnage the password every 4 weeks the password should have min 5 chacaters ........

passwd -n DAYS ....... and which string is for the min password lenght ......

many thx!
# 2  
Old 10-10-2003
What OS and version? Are you using NIS or NIS+ (which don't use password aging)?

Man page for shadow (if you are using it) shows the following:
Each entry in the shadow file has the form:

username: password:lastchg: min:max:warn: inactive:expire:flag

So you want the max field:

lastchg
The number of days between January 1, 1970, and
the date that the password was last modified.

min The minimum number of days required between pass-
word changes.

max The maximum number of days the password is valid.

warn The number of days before password expires that
the user is warned.

Read the man page for shadow and post back if you still don't get it.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

passwd -s

Hi, I've a problem regarding understanding of result of passwd -s command. > passwd -s abc PS 05/24/12 0 441 I'm not a super user. But i need to write a simple code for checking password expiry and send an email to the team id. Is there any other command or way to achieve this?... (6 Replies)
Discussion started by: sam_bd
6 Replies

2. AIX

When did AIX start using /etc/security/passwd instead of /etc/passwd to store encrypted passwords?

Does anyone know when AIX started using /etc/security/passwd instead of /etc/passwd to store encrypted passwords? (1 Reply)
Discussion started by: Anne Neville
1 Replies

3. Solaris

passwd cmd reenables passwd aging in shadow entry

Hi Folks, I have Solaris 10, latest release. We have passwd aging set in /etc/defalut/passwd. I have an account that passwd should never expire. Acheived by emptying associated users shadow file entries for passwd aging. When I reset the users passwd using passwd command, it re enables... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies

4. UNIX for Dummies Questions & Answers

How to implement password policies?

How would i ensure that whenever any user changes the password it should meet following. It should be more than 7 Characters. Atleast one Upper case character,digit and special character present. Password is not same as username or dictionary word . User should get email after changing his... (2 Replies)
Discussion started by: pinga123
2 Replies

5. UNIX for Advanced & Expert Users

no /etc/passwd

Hello ppl, A small mistake of mine has led the /etc/passwd file deleted. So i went to rescue mode and used the following command echo "root::0:0:Superuser:/:/bin/bash" > passwd but that did not get effect in anyway way. when I switch back to normal mode the root is still asking for a passwd.... (3 Replies)
Discussion started by: cyno
3 Replies
Login or Register to Ask a Question