Thank you very much. In fact, I would improve a bit the workaround, to be executed as root, and which worked for me:
- Code: Select all
userdel <username>
groupadd -g <GID> <username>
useradd -g <GID> -u <UID> <username> -c"<User Full Name>"
passwd <username>
usermod -aG <extra group1 ID>,<extra group2 ID>... <username>
where <username> should be replaced by the user's computer username, <GID> by that user's primary group ID number, <UID> by the user ID number, <User Full Name> by his real name (between quotation marks), <extra group1 ID>,<extra group2 ID>... by the non primary groups he should belong too, if any, separated by commas. If not, omit that line. In case there are other members of the primary group, userdel will complain it cannot delete the primary group, so that you don't need the groupadd command line.
@doktor5000:
- Code: Select all
# passwd -S firm-suren
firm-suren PS (Password set, blowfish crypt.)
# chage -l firm-suren
Last password change : never
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : -1
Maximum number of days between password change : -1
Number of days of warning before password expires : -1