How to change id and group to the user

jd1008 jd1008 at gmail.com
Thu Dec 24 22:38:30 UTC 2015



On 12/24/2015 03:29 PM, Walter Cazzola wrote:
> Dear Experts,
> as you probably know (from another thread) I've just installed Fedora 
> 23 on my dell m6800 and I have a new problem.
>
> I have let the installer create my user and it has given it uid 1000 
> and gid 1000. This is the standard behavior and I'm used to change it 
> by manually edit /etc/group and /etc/passwd but this time this 
> behavior has broken my user. I can't enter at the kde login (before in 
> the splash screen it was asking for the password of my user than 
> asking for a password but no user was specified and I got a login erro 
> when I use my passowrd).
>
> Also removing the user with userdel and readd it with useradd didn't 
> solve the issue. The only fix I found was to reinstall the whole 
> system. But now I still have the need to change the user uid and its 
> group number. Which is the correct way?
>
> Thank you again for the help and Merry Christmas
>
> Walter
So, after manually changing the uid and gid of the user,
did you login as root, or did you run sudo to change the user's home
dir to the new uid and gid?



More information about the users mailing list