set no password in a fedora user
Tom Mitchell
mitch48 at sbcglobal.net
Tue Dec 9 21:25:53 UTC 2003
On Tue, 9 Dec 2003, Rafa Quintanilla wrote:
> From: Rafa Quintanilla <rafael_quintanilla_perez at yahoo.es>
> To: fedora-list at redhat.com
> Subject: set no password in a fedora user
> Date: Tue, 9 Dec 2003 13:50:27 +0100 (CET)
> Reply-To: fedora-list at redhat.com
>
> Hi,
> I am using fedora and set two more users, one of them
> my wife. I tried to leave her password blank, but
> fedora wouldn't admit that (altho I have it so in MDK
> 9.2, in the same hard disk). Does anyone know if that
> is possible? How?
See "passwd --help"
>From the passwd man page:
-u This is the reverse of the -l option - it will unlock the
account password by removing the ! prefix. This option is avail-
able to root only. By default passwd will refuse to create a
password less account (it will not unlock an account that has
only "!" as a password). The force option -f will override this
protection.
So try:
passwd -u -f her-account
passwd -d her-account
You can also edit the passwd file and its shadow file
with 'vipw' as root. The encripted passwd itself is in the
shadow file (/etc/shadow).
Change her line (might be something like this):
hat:$1$NT6kqc.a$td5H1qhI31Ee3y3yRZelq.:12379:-1:99999:-1:::
|^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^|
To look like this:
hat::12379:-1:99999:-1:::
It may be that your 'pam' settings will not validate any user
with an empty/unset passwd. See /etc/pam.conf and also the pam
man page. In general this is a very good idea and may be the
default.
As root you could set passwd to some very simple and easy to
remember set of key strokes. This is a MUCH better thing to do
than no pass word at all.
--
T o m M i t c h e l l
mitch48 -a*t- yahoo-dot-com
More information about the fedora-list
mailing list