That's from the lock(1) man page, not the pw(8) man page. the relevant
section from the pw man page is as follows:

USER LOCKING
Pw supports a simple password locking mechanism for users; it works by
prepending the string `*LOCKED*' to the beginning of the password field
in master.passwd to prevent successful authentication.

The lock and unlock commands take a user name or uid of the account to
lock or unlock, respectively.  The -V, -C, and -q options as described
above are accepted by these commands.

On Sat, 2002-10-19 at 21:01, Bsd Neophyte wrote:
> 
> this is what i pulled from the 'pw' man page about the 'lock' option.
> 
> to me, it doesn't seem as if they do the same thing.
> 
> ---------
> DESCRIPTION
> The lock utility requests a password from the user, reads it again for
> verification and then will normally not relinquish the terminal until the
> password is repeated.  There are two other conditions under which it will
> terminate: it will timeout after some interval of time and it may be
> killed by someone with the appropriate permission.
> ----------
> 
> whereas the linux version states that it makes the account available for
> root only.
> 
> ----------
> -l
> This option is used to lock the specified account and it is available to
> root only. The locking is performed by rendering the encrypted password
> into an invalid string (by prefixing the encrypted string with an !). 
> ----------
> 
> 
> --- Ceri Davies <[EMAIL PROTECTED]> wrote:
> > On Sat, Oct 19, 2002 at 08:17:53AM -0700, Bsd Neophyte wrote:
> > > 
> > > i'm following a pretty decent IBM tutorial on how to setup a samba
> > PDC. 
> > > in the tutorial the following command is mentioned:
> > > 
> > > passwd -l
> > 
> > pw lock [user]
> > 
> > Check the pw manpage.
> > 
> > Ceri
> > 
> > -- 
> > you can't see when light's so strong
> > you can't see when light is gone
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Autos - Get free new car price quotes
> http://autos.yahoo.com
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message
> 

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to