Bug 148464

Summary: new user with password "x" disabled
Product: [openSUSE] SUSE Linux 10.1 Reporter: Harald Koenig <koenig>
Component: InstallationAssignee: Jiří Suchomel <jsuchome>
Status: RESOLVED FIXED QA Contact: Klaus Kämpf <kkaempf>
Severity: Normal    
Priority: P5 - None CC: suse-beta
Version: Beta 2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
See Also: https://fate.suse.com/300749
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Harald Koenig 2006-02-06 18:36:53 UTC
in yast at install time I created a user "koenig" with password "x" (1 character).
I got a warning about short password and a 2nd warning about only using lower case
charaters.  pressing ENTER twice created the user account, but it's disabled:

        # grep koenig /etc/shadow
        koenig:x:13182:0:99999:7:-1::
Comment 1 Christian Boltz 2006-02-06 19:06:24 UTC
As usual: attach the y2logs, please ;-)

BTW: Does this also happen with password "y"? Just to make sure it's disabling the user and not missing encryption...
Comment 2 Harald Koenig 2006-02-07 14:47:06 UTC
(In reply to comment #1)
> As usual: attach the y2logs, please ;-)
> 
> BTW: Does this also happen with password "y"? Just to make sure it's disabling
> the user and not missing encryption...

sorry, the y2logs for beta-2 installation are gone, I've installed beta-3
in the mean time.

and for the 1st time I've used the password "xy" for my local test account,
and this time the account worked out of the box (was not blocked).


at least in 10.0 and almost sure 9.3 (maybe even earlier) had the same behaviour that password "x" for root was ok, but the plain user with "x" always was disabled after installation.

looks like you have some special code in yast for password "x", maybe I should use the even more secure new password "y" in the future  ?! ;-) 
Comment 3 Harald Koenig 2006-02-07 15:12:07 UTC
(In reply to comment #1)
> As usual: attach the y2logs, please ;-)
> 
> BTW: Does this also happen with password "y"? Just to make sure it's disabling
> the user and not missing encryption...

is it possible to trigger/test that behaviour without starting a new installation ?  right now a new installation is not possible -- no free resources, sorry :-(
Comment 4 Michael Gross 2006-02-07 15:43:51 UTC
It should be reproducible easily, reassigning.
A root password with a single character is really no good idea... maby the password should just be rejected and at least be 3 chars long, which is unsecure enough as I think.
Comment 5 Jiří Suchomel 2006-02-07 16:20:49 UTC
Unfortunatelly, "x" password just doesn't work and it is not so easy to fix it.
Comment 6 Harald Koenig 2006-02-07 17:26:05 UTC
(In reply to comment #4)

> A root password with a single character is really no good idea... maby the
> password should just be rejected and at least be 3 chars long, which is
> unsecure enough as I think.

oh come on, please.  if I decide that this is secure enough and click "OK" in two message boxes with warnings, you really can beleave me that "x" is secure enough in this case.

after all, this system doesn't have a real network connection and you'll have some trouble to get physical acesss to it -- and it's only my play ground right now to figure out if it's really possible to use 64 bit XEN with SUSE -- right now the estimated answer seems to be "no" anyway (deep sigh:-(


if you'd like to improve security, you better remove the default for the "automatic login" stuff without any password at all -- even if this might set up some WinXP SP0/SP1 users... 
Comment 7 Harald Koenig 2006-02-07 17:29:47 UTC
(In reply to comment #5)
> Unfortunatelly, "x" password just doesn't work and it is not so easy to fix it.

I always waas afraid, that once this password might break my neck -- now it seems to have happened ;-)   

"not so easy to fix" sounds really scary, maybe one should look into the depths of user administration/creation and password stuff for some code review :-))


OK, learned my lessen: I will switch to password "y" for future testing !
thanks!!
Comment 8 Jiří Suchomel 2006-02-08 08:15:14 UTC
ad comment #6: it has nothing to do with security, it is a real bug

"not so easy to fix" means it is not few-line fix; however I want to solve it. By this statement I alse meant that I won't have a time to fix it for 10.1

setting as LATER
Comment 9 Jiří Suchomel 2006-07-14 07:29:54 UTC
reopen yast2-users bugs
Comment 10 Jiří Suchomel 2006-07-18 08:13:37 UTC
Stano, please move this to FD as mandatory features for SP1.
Comment 11 Jiří Suchomel 2006-07-18 12:50:49 UTC
later (->feature document)
Comment 12 Jiří Suchomel 2006-07-26 07:17:42 UTC
reopened
Comment 13 Jiří Suchomel 2006-07-26 07:43:43 UTC
Fixed in yast2-users-2.13.21