Bug 16820

Summary: New user does not need normal password if his home directory already exists - libuser fatal error: lu_mail_spool_create() called with non-NULL *error (when there's an existing home for the new user)
Product: Mageia Reporter: Sebastien Chavaux <passiongnulinux>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED OLD QA Contact:
Severity: normal    
Priority: Normal CC: marja11, thierry.vignaud
Version: 5Keywords: NEEDINFO
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
URL: http://www.mageialinux-online.org/forum/topic-20682+second-user-pas-besoin-de-mot-de-passe.php
Whiteboard:
Source RPM: userdrake CVE:
Status comment:

Description Sebastien Chavaux 2015-09-24 14:14:29 CEST
Hello ;)

Description of problem:
To connect as kdm, the first user, the one created at installation time, requires a password, which is normal.
Now if I created a second user, this one does not need a password to connect. (???)

Version-Release number of selected component (if applicable):
Mageia 5 installed with the classic dvd and LiveDVD kde

How reproducible:
create a new user via the ccm, then disconnect its current user, you're on kdm, selects one of the other newly created user and permit the blank password, then enter

Steps to Reproduce:
1.create a new user via the ccm
2.disconnect its current user
3.selects one of the other newly created user and permit the blank password, then enter


Reproducible: 

Steps to Reproduce:
Comment 1 Marja Van Waes 2015-09-24 14:50:41 CEST
I cannot reproduce with a non-Live install (don't have a Live install available)

Do you see any related messages in a konsole/terminal when first starting MCC from the command line, so after as root typing
  mcc

and then creating a user with password?

Keywords: (none) => NEEDINFO
CC: (none) => marja11
Component: Security => RPM Packages
QA Contact: security => (none)

Comment 2 Marja Van Waes 2015-09-24 14:51:19 CEST
ah, and did you first update your system, before creating the new user?
Comment 3 Sebastien Chavaux 2015-09-24 15:06:09 CEST
Then this is very weird, I vien to create a user that had no existing folder in the home, and it can not connect without a password, by redoing the user against my wife, has an existing folder in the home, it can connect without a password.

Another thing, the user was created with foo foo passes and as full name toto, it was the good, he should enter his password.
My wife his account for his full name and his first name last name, the login is just his first name, and with a fairly good password. The I'm delete the account and again, it can still connect without a password.

A Priory, simply return to the MCC to change back the password and most can switch the connection without password.

the updates were made before

Thank you
Comment 4 Sebastien Chavaux 2015-09-24 15:10:17 CEST
That is when I run MCCR in the console and I created the user:

drakconf
"/usr/sbin/drakmenustyle" is not executable [Menus] at /usr/libexec/drakconf line 831.
"/usr/sbin/drakbackup" is not executable [Backups] at /usr/libexec/drakconf line 831.
"/usr/sbin/tomoyo-gui" is not executable [Tomoyo Policy] at /usr/libexec/drakconf line 831.
"/usr/sbin/drakguard" is not executable [Parental Controls] at /usr/libexec/drakconf line 831.
Ignore the following Glib::Object::Introspection & Gtk3 warnings
Subroutine Gtk3::main redefined at /usr/lib/perl5/vendor_perl/5.20.1/Gtk3.pm line 296.
Erreur lors de la création de « /home/celine » : Error creating `/home/celine': Le fichier existe at /usr/libexec/drakuser line 501.
libuser fatal error: lu_mail_spool_create() called with non-NULL *error
Ignore the following Glib::Object::Introspection & Gtk3 warnings
Subroutine Gtk3::main redefined at /usr/lib/perl5/vendor_perl/5.20.1/Gtk3.pm line 296.
Comment 5 Marja Van Waes 2015-09-24 15:25:18 CEST
I haven't tried to reproduce, but the reporter reproduced it on a traditionally installed system, so it has nothing to do with some weird setting that only exists in Live installs:

2015:09:24:13:52 < seb95> bon je viens de finir l'installation pour la enieme fois du dvd classique
2015:09:24:13:52 < seb95> j'ai aussi le truc comme sur le live
2015:09:24:13:53 < seb95> le second utilisateur créé par le ccm, avec un mot de passe, a la deconnexion, je selectionne ce second utilisateur et je laisse le mot de passe vide ça se connecte

Keywords: NEEDINFO => (none)
CC: (none) => thierry.vignaud
Summary: The second user does not need normal password? => New user does not need normal password if his home directory already exists - libuser fatal error: lu_mail_spool_create() called with non-NULL *error (when there's an existing home for the new user)
Source RPM: (none) => userdrake

Comment 6 Rémi Verschelde 2015-09-24 15:32:16 CEST
Sebastien, could you try creating a third user with an unique username (i.e. one that has no folder in /home yet) and confirm that there is no bug in this configuration?
Comment 7 Sebastien Chavaux 2015-09-24 16:23:26 CEST
what's weird is that when I do a simple user like you ask me it's not crash, I remain in users and groups, and when I do a more complex user and already have a home, it ejects me this tools.

Same, simple user without already home of fact, I have a user that is not blocked by cons with a complex user (name surname) and having a home already present, the user is blocked and I must unlock it myself.
Comment 8 Sebastien Chavaux 2015-09-24 16:23:55 CEST
(In reply to Sebastien Chavaux from comment #7)
> what's weird is that when I do a simple user like you ask me it's not crash,
> I remain in users and groups, and when I do a more complex user and already
> have a home, it ejects me this tools.
> 
> Same, simple user without already home of fact, I have a user that is not
> blocked by cons with a complex user (name surname) and having a home already
> present, the user is blocked and I must unlock it myself.

version fr:
ce qui est bizarre, c'est que quand je fais un simple utilisateur comme vous me le demandez ça plante pas, je reste dans utilisateurs et groupes, et quand je fais un utilisateur plus complexe et ayant deja un home, ça m'ejecte de cette outils. 

Pareil, si simple utilisateur sans home deja de fait, j'ai l'utilisateur qui n'est pas bloquer, par contre avec un utilisateur complexe(nom prenom) et ayant un home deja present, l'utilisateur est bloqué et je dois le debloquer moi meme.
Comment 9 Sebastien Chavaux 2015-09-24 16:25:58 CEST
I confirm, so simple user without home no bug, it must pass to enter the system
Comment 10 Rémi Verschelde 2015-09-24 16:32:17 CEST
When creating the user "celine" which already has a home folder, do you untick "Create home folder" / "Créer le dossier personnel" here? http://doc.mageia.org/mcc/5/fr/content/userdrake.html

Normally you should do that, and also specify the UID manually if the owner of /home/celine is different from the one userdrake wants to assign (or change the ownership of /home/celine before, if it's for example 501 and it should be 1001).
Comment 11 Sebastien Chavaux 2015-09-24 16:58:35 CEST
(In reply to Rémi Verschelde from comment #10)
> When creating the user "celine" which already has a home folder, do you
> untick "Create home folder" / "Créer le dossier personnel" here?
> http://doc.mageia.org/mcc/5/fr/content/userdrake.html
> 
> Normally you should do that, and also specify the UID manually if the owner
> of /home/celine is different from the one userdrake wants to assign (or
> change the ownership of /home/celine before, if it's for example 501 and it
> should be 1001).

 I have not fired or can be of little error
 The UID is therefore well above the 1001 is good :)
I'll repeat that account by doing what you say and I rapporterais you all is that it may be that I do not need password to enter the session.
Comment 12 Sebastien Chavaux 2015-09-24 17:02:14 CEST
Good all of abod by as you say it's true that I'm not ejected for "user group", then the account is not blocked.
The user change, I have to get my password for the user create, so this is solved;)
I might be not annoy you with that?

Thanks you
Comment 13 Samuel Verschelde 2016-11-02 12:11:45 CET
So in the end, is there an issue that we can fix in userdrake?
Samuel Verschelde 2016-11-02 12:11:59 CET

Keywords: (none) => NEEDINFO

Comment 14 Marja Van Waes 2017-01-07 10:40:22 CET
No reply, closing as OLD

@ Sebastien

Thanks a lot for the effort you made to write English!

If there is still an issue to be fixed, then please reopen this bug report and give _both_ the English and the French version of what you want to say.

It'll help us to better understand the problem.

Thanks!

Marja

Status: NEW => RESOLVED
Resolution: (none) => OLD