mate-user-admin bug?

7 réponses [Dernière contribution]
Other_Cody
Hors ligne
A rejoint: 12/20/2023

I do not think the mate-user-admin works at this time to setup some user names, like Other_Cody and may not let you select the set password now option with any user name.

I could set up a user later if I did not use the set password now option.

Other_Cody
does not work
cody-u
works, but only if I do not try to set a password now, as the Confirm button will not let you click it if you try to Now set the password
so I used the Set up next time
option.

I tested it with the mate terminal and saw

mate-user-admin
/var/cache/cracklib/cracklib_dict.pwd: No such file or directory
/var/cache/cracklib/cracklib_dict.pwd: No such file or directory
/var/cache/cracklib/cracklib_dict.pwd: No such file or directory
/var/cache/cracklib/cracklib_dict.pwd: No such file or directory
/var/cache/cracklib/cracklib_dict.pwd: No such file or directory
/var/cache/cracklib/cracklib_dict.pwd: No such file or directory

I do not know if this is part of the problem yet or not.

Does anyone else have this problem, and if so has it been reported, or is at least a know bug?

I was not using common words, but random charactors.

Pièce jointeTaille
Screenshot at 2024-03-02 12-25-34.png892.65 Ko
Screenshot at 2024-03-02 12-50-22.png373.72 Ko
prospero
Hors ligne
A rejoint: 05/20/2022

It looks like you cannot use uppercase letters in the "User Name" (which is the user name for the system) but only lowercase letters, numbers, and the dot, hyphen and dash symbols.

EDIT: Full Name -> User Name

Magic Banana

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/24/2010

It depends on NAME_REGEX, defined in /etc/adduser.conf:
$ grep NAME_REGEX /etc/adduser.conf
#NAME_REGEX="^[a-z][-a-z0-9_]*\$"

That default regexp means the login must start with a lowercase letter and, then, any number of characters among the hyphen, the lowercase letters, the digits, and the underscore. There are some good reasons for those constraints: https://paulgorman.org/technical/presentations/linux_username_conventions.pdf

prospero
Hors ligne
A rejoint: 05/20/2022

The mate-user-admin tool seems to be applying the POSIX portable filename character set while checking User Name validity, and not the stricter NAME_REGEX:
https://github.com/zhuyaliang/user-admin/blob/094986c6ac77cad0f4c34048cb51b3d345ca7348/src/user-admin.c#L290-L295

This probably explains why users do not get a warning when trying to use uppercase letters in the User Name field.

EDIT: removed outdated info.

Other_Cody
Hors ligne
A rejoint: 12/20/2023

Thank you, prospero, and, Magic Banana, for the information about part of this problem.

I do not know why the

Now set the password
button does not let you use it.
Though users can still at least set a password after logging out.

https://trisquel.info/files/Screenshot%20at%202024-03-02%2012-50-22.png

This possible bug was reported at https://gitlab.trisquel.org/trisquel/trisquel-packages/-/issues/29

I found this problem sometime after Trisquel switched to using mate-user-admin instead of likely using users-admin.

prospero
Hors ligne
A rejoint: 05/20/2022

Installing the cracklib-runtime package fixed the password check issue in mate-user-admin for me.

The users-admin utility from gnome-system-tools was replaced by mate-user-admin some time ago in the repo, but users who installed from the live ISO are possibly still using users-admin. They may need to uninstall one and install the other manually.

Ark74

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/15/2009

By applying all the updates correctly, gnome-system-tools gets automatically removed.

Thanks for the info.

prospero
Hors ligne
A rejoint: 05/20/2022

> By applying all the updates correctly

Yes, at first I did not realize that this requires more than security updates.