how to reset password with nologin shell?

Micheal Patterson micheal at
Wed Aug 27 22:02:12 PDT 2003

----- Original Message ----- 
From: "David Banning" <david+dated+1062438732.fcbda4 at>
To: <questions at>
Sent: Wednesday, August 27, 2003 12:52 PM
Subject: how to reset password with nologin shell?

> 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.
> -- 
> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribe at"

As root, you can run passwd <username> to set it to what they request.


Micheal Patterson
Network Administration
Cancer Care Network

More information about the freebsd-questions mailing list