Find the answer to your Linux question:
Results 1 to 2 of 2
I have started a server so a few of my friends could learn how to use linux without having their own machine. I was wondering what would be the easiest ...
  1. #1
    Just Joined!
    Join Date
    Apr 2008
    Location
    Georgia, US
    Posts
    53

    First time password script



    I have started a server so a few of my friends could learn how to use linux without having their own machine. I was wondering what would be the easiest way to implement a script that would run passwd the first time they login so it would prompt them to change their password. I've been asking them what they want it to be, but that has become a hassle, so I was thinking about implementing something like this. Also what would I put in the script itself.

  2. #2
    Linux Enthusiast
    Join Date
    Aug 2006
    Location
    Portsmouth, UK
    Posts
    520
    You can set the date the password was last changed to 0, in a default environment this will make the user change password at next login:

    Code:
    # chage -d0 <user>
    You would need to set a default password to allow them to login the first time though...
    RHCE #805007238628267
    Please don't PM me with questions as no reply may offend, that's what the forums are for.

Posting Permissions

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