From owner-freebsd-questions Sat Oct 19 13:16:29 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F1D037B401 for ; Sat, 19 Oct 2002 13:16:27 -0700 (PDT) Received: from knyghtmare.com (pc1-darl1-6-cust123.mid.cable.ntl.com [213.105.18.123]) by mx1.FreeBSD.org (Postfix) with SMTP id 236F343E9C for ; Sat, 19 Oct 2002 13:16:26 -0700 (PDT) (envelope-from knyghtmare@knyghtmare.com) Received: (qmail 45874 invoked by uid 1000); 19 Oct 2002 20:16:24 -0000 Subject: Re: FreeBSD version of Linux's "passwd -l" From: Tom Carrick To: Bsd Neophyte Cc: freebsd-questions@freebsd.org In-Reply-To: <20021019200153.51565.qmail@web20109.mail.yahoo.com> References: <20021019200153.51565.qmail@web20109.mail.yahoo.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-0Jkkeyd43wfAuzs36wTd" X-Mailer: Ximian Evolution 1.0.8 Date: 19 Oct 2002 21:16:24 +0100 Message-Id: <1035058584.398.50.camel@knyghtmare.com> Mime-Version: 1.0 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-0Jkkeyd43wfAuzs36wTd Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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: >=20 > this is what i pulled from the 'pw' man page about the 'lock' option. >=20 > to me, it doesn't seem as if they do the same thing. >=20 > --------- > 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. > ---------- >=20 > whereas the linux version states that it makes the account available for > root only. >=20 > ---------- > -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 !).=20 > ---------- >=20 >=20 > --- Ceri Davies wrote: > > On Sat, Oct 19, 2002 at 08:17:53AM -0700, Bsd Neophyte wrote: > > >=20 > > > i'm following a pretty decent IBM tutorial on how to setup a samba > > PDC.=20 > > > in the tutorial the following command is mentioned: > > >=20 > > > passwd -l > >=20 > > pw lock [user] > >=20 > > Check the pw manpage. > >=20 > > Ceri > >=20 > > --=20 > > you can't see when light's so strong > > you can't see when light is gone >=20 >=20 > __________________________________________________ > Do You Yahoo!? > Yahoo! Autos - Get free new car price quotes > http://autos.yahoo.com >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message >=20 --=-0Jkkeyd43wfAuzs36wTd Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQA9sb2YRhxQpFRYpjsRAjydAKC91j1t17bkqJGIMqFwzKH82OpYbQCcD8is a9zhP9QlM7ZbHDRkOvg9VYU= =tSCe -----END PGP SIGNATURE----- --=-0Jkkeyd43wfAuzs36wTd-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message