Find the answer to your Linux question:
Results 1 to 5 of 5
I have looked and googled but guessing i am looking for the wrong thing, but i need to set a few users password to never expire but i cant figure ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2012
    Posts
    3

    Slackware password expiration date


    I have looked and googled but guessing i am looking for the wrong thing, but i need to set a few users password to never expire but i cant figure out how to do it.

    anyone able to help me out with this ?

    Currently i am logging in and manually doa passwd on the accounts and they start to work again but would rather have them with no password expiration at all.

    They are read only usernames for use in VSFTPD so i am not worried if someone guess what the password is.

    thanks for any help

    /Joakim

  2. #2
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,025
    Code:
    # chage -m 0 -M 99999 -I -1 <username>
    Take a look at the chage man page for more info.
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  3. #3
    Just Joined!
    Join Date
    Aug 2012
    Posts
    3
    Thank you. I saw that page but was not sure of the command. But used the command line you put in and works.. wel lit did not scream at me and telling me it was wrong so i assume its right :P

  4. $spacer_open
    $spacer_close
  5. #4
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,025
    Quote Originally Posted by Joakim71 View Post
    well it did not scream at me and telling me it was wrong so i assume its right :P
    lol... that's usually a good thing!
    Just FYI, that will actually set the expiry date of a password for 99999 days from now, and even then will not check for age validity on login.
    And I'm fairly sure that that is plenty of time.
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  6. #5
    Just Joined!
    Join Date
    Aug 2012
    Posts
    3
    Quote Originally Posted by jayd512 View Post
    lol... that's usually a good thing!
    Just FYI, that will actually set the expiry date of a password for 99999 days from now, and even then will not check for age validity on login.
    And I'm fairly sure that that is plenty of time.
    Well hate to be a pest but its still expiring.


    root@ftp:~# chage -l name here
    Last password change : Jul 30, 2013
    Password expires : never
    Password inactive : never
    Account expires : never
    Minimum number of days between password change : 0
    Maximum number of days between password change : 99999
    Number of days of warning before password expires : -1

    Thats what i get when listing the username and yet i have to manually reset the password around every 45 days or so.

    Any ideas ?

    /Joakim

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •