how to reset password with nologin shell?

Charles Howse chowse at charter.net
Wed Aug 27 10:56:58 PDT 2003


> If I have a user that has a nologin shell and they forget
> thier password, is there a way to give them a new password?
> 
> Right now I am resetting their password to nil, then
> giving them a shell like /bin/sh, logging in on their behalf,
> setting up a password, and then changing their shell back
> to /bin/nologin.
> 
> I would like to elliminate the noshell to shell and then
> back to noshell part.

# passwd <username>




More information about the freebsd-questions mailing list