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 ...
- 12-03-2008 #1Just 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.
- 12-03-2008 #2Linux 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:
You would need to set a default password to allow them to login the first time though...Code:# chage -d0 <user>
RHCE #805007238628267
Please don't PM me with questions as no reply may offend, that's what the forums are for.


Reply With Quote
