Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Aug 2003 11:19:37 -0700
From:      "Derrick Ryalls" <ryallsd@datasphereweb.com>
To:        "'Jerry McAllister'" <jerrymc@clunix.cl.msu.edu>, "'David Banning'" <david+dated+1062438732.fcbda4@skytracker.ca>
Cc:        questions@freebsd.org
Subject:   RE: how to reset password with nologin shell?
Message-ID:  <A99A5AC30F74624388EE5F757BA58A2026C6CE@RED-MSG-50.redmond.corp.microsoft.com>
In-Reply-To: <200308271815.h7RIFAvP017876@clunix.cl.msu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
> > 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.
> 
> If you have root - you must have, just type  'passwd USERID' 
> Substitute the real user name for USERID and don't use the 
> quotes. Root can set password for any user - but make sure you put a 
> username because if you don't, you will set root's password.
> 

You can also install usermin (ports) so that once you give them a password,
they can change it without direct shell access.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A99A5AC30F74624388EE5F757BA58A2026C6CE>