etc/passwd edition

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Theadmin77
    New Member
    • Nov 2006
    • 19

    etc/passwd edition

    Ok , i need to make some changes on user password policies by editing the etc/passwd file ...

    I need to change joeblow /etc/shadow entry so that he must change his password once every 90 days, receiving a warning 5 days prior to his password expiring, with no minimum time before user can change his passwords .

    So far i can accomplish the first part (90 days to change password) thru this command:

    chage -M 90 joeblow

    But i am a little stock with the rest .

    Any idea anyone ?

    I appreciate any help
  • ghostdog74
    Recognized Expert Contributor
    • Apr 2006
    • 511

    #2
    Originally posted by Theadmin77
    Ok , i need to make some changes on user password policies by editing the etc/passwd file ...

    I need to change joeblow /etc/shadow entry so that he must change his password once every 90 days, receiving a warning 5 days prior to his password expiring, with no minimum time before user can change his passwords .

    So far i can accomplish the first part (90 days to change password) thru this command:

    chage -M 90 joeblow

    But i am a little stock with the rest .

    Any idea anyone ?

    I appreciate any help
    you do not want to manually modify your /etc/shadow file. use the proper tools, like usermod or passwd to change them. check your passwd, usermod man page for instructions.

    Comment

    Working...