mate-user-admin bug?
- Vous devez vous identifier ou créer un compte pour écrire des commentaires
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 jointe | Taille |
---|---|
Screenshot at 2024-03-02 12-25-34.png | 892.65 Ko |
Screenshot at 2024-03-02 12-50-22.png | 373.72 Ko |
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
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
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.
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.
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.
- Vous devez vous identifier ou créer un compte pour écrire des commentaires