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
--
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?
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.
But what have you changed the ID values to? Have you set them lower than 1000? That will probably affect login.
For what it's worth, when I set up a new system, my philosophy is to set up a test user or two, as well as my own username. It may be worth while doing that first, then setting up yourself with a higher ID. Giving you some non-valuable logins to test things with.
Hi
On Fri, Dec 25, 2015 at 12:10 AM, Tim ignored_mailbox@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?
Walter
--
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@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.
Tim:
But what have you changed the ID values to? Have you set them lower than 1000? That will probably affect login.
Walter Cazzola:
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?
Okay, as the other poster said, you can change some configuration files to lower the threshold between system user IDs and user IDs.
However, as quite some time ago it was decided to move the threshold to 1000 instead of 500, to follow suit with many other distros, you're swimming against the tide. You'll have to handle this reconfiguration with every update, and probably find more things that don't like this as time goes on.
If you use IDs below the threshold, you find names don't appear in logon lists, security functions may restrict what you're allowed to do, etc.
Unless you need a low ID number to fit in with some other OS that you can't reconfigure, I'd suggest moving up to higher ID numbers, to make life easier for yourself.
On Thu, Dec 24, 2015 at 11:29:04PM +0100, Walter Cazzola wrote:
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
No help now, but note that in the future you can specify these in the "advanced" section when creating the user.