How to change id and group to the user

Berend De Schouwer berend.de.schouwer at gmail.com
Sat Dec 26 05:18:44 UTC 2015


On Fri, 2015-12-25 at 18:12 +0100, Walter Cazzola wrote:
> Hi
> 
> On Fri, Dec 25, 2015 at 12:10 AM, Tim <ignored_mailbox at yahoo.com.au>
> wrote:
> > Allegedly, on or about 24 December 2015, Walter Cazzola sent:
> > > 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).
> > 
> > Edit those files to change the IDs.
> > chown recursively the /home/username in question
> > Likewise with /var/spool/mail/username in question
> > Delete and /tmp/ files belonging to the username, just in case
> > anything
> > has lingered.
> Did all of these steps. 
> >  
> > But what have you changed the ID values to?  Have you set them
> > lower
> > than 1000?  That will probably affect login.
> my new uid would be 526 and I would keep the 1000 as a gid but
> renamed from cazzola to collab. If 526 is the problem how I can solve
> this?

login.defs (adduser) and /etc/security/* (various login modules)

systemd also has a setting, which gets picked at *compile* time (
--with-system-uid-max), so you may not be able to without recompiling
systemd.



More information about the users mailing list