Forcing users to change password at login - Probably "Again"

mark m.roth2006 at rcn.com
Mon Jul 14 23:43:58 UTC 2008


Ben Kevan wrote:
> 
> I am writing this because I need to know how to force a password to be changed 
> at next login via a useradd script. 
> 
> I originally wrote my script on an openSUSE box, which had the passwd -e 
> argument, however RHEL4 (haven't checked RHEL5) does not have this argument 
> avaliable. 
> 
> In the script I have also tried: 
> 
> passwd -f $ACCT (the acct variable is obviously the account name), but that 
> makes me change the default created password at that time and not when the 
> user logs in the next time
<snip>
The man page on passwd says
 -e The user will be forced to change the password at next login.

	mark




More information about the redhat-list mailing list