Bugzilla – Bug 146477
UID Not correct when recycling a user a user on a new install
Last modified: 2006-02-06 16:46:52 UTC
When i do a new install i always keep the home directories. Because i have files in it that i still need. I have user1, user2 and user3 on my system. During the installing process i do the following. Initiated by the install process -> root password and first user (user1) (get UID 1000) Myself after install:Create user2 get UID 1001 Create user3 gets UID 1001 too. Ihave to change the UID to 1002 myself. Yast gives both users (user2 and user3) UID 1001
Are these the UIDs suggested by YaST or did you change any of them manually? (AFAIK, YaST usually displays a warning if two users have the same id...) Please attach the y2logs (http://www.opensuse.org/Bug_Reporting_FAQ#YaST)
I've changes the manualy. because they aren't correct. user1 = jboonen user2 = mboonen user3 = guest
Created attachment 65558 [details] YaSST log files user1 = jboonen user2 = mboonen user3 = guest I've changed the UID for gust from 1001(suggested by YaST)to 1002 as 1001 was already used for mboonen.
Joop: What userids did YaST suggest in the first place, before you changed anything? Did it really assign one UID to two users?
It suggested UID 1001 for both users. I added these users write after eachother. So i got something like: ls -al /home .... jboonen users <date> jboonen .... guest users <date> mboonen .... guest users <date> guest I have to reinstall my system to reproduce this. I might do this. Maybe with another system.
I've just did a install of another system. I gave the same problem. It'simportant that you add the 2 users in the user management screen. If you close it and you add the user after closing the uid is correct = last-uid+1.
Created attachment 65767 [details] Latest YaST log files
Created attachment 65768 [details] Screen shots of adding the users Look at user mboonen and guest they have the same UID. The problem might also occur when you add users that don't exist yet. I didn't test this yet.
Even dough it didn't look fine in the user management screen in /etc/passwd it's fine: news:x:9:13:News system:/etc/news:/bin/bash nobody:x:65534:65533:nobody:/var/lib/nobody:/bin/bash ntp:x:74:103:NTP daemon:/var/lib/ntp:/bin/false postfix:x:51:51:Postfix Daemon:/var/spool/postfix:/bin/false root:x:0:0:root:/root:/bin/bash sshd:x:71:65:SSH daemon:/var/lib/sshd:/bin/false uucp:x:10:14:Unix-to-Unix CoPy system:/etc/uucp:/bin/bash wwwrun:x:30:8:WWW daemon apache:/var/lib/wwwrun:/bin/false guest:x:1002:100:G.U. Est:/home/guest:/bin/bash jboonen:x:1000:100:Joop Boonen:/home/jboonen:/bin/bash mboonen:x:1001:100:Melvis Boonen-Goh:/home/mboonen:/bin/bash And: jboonen@linux:~> ls -al /home/ total 7 drwxr-xr-x 5 root root 120 2006-01-28 19:49 . drwxr-xr-x 25 root root 592 2006-01-30 22:04 .. drwxr-xr-x 28 guest users 1560 2006-01-22 09:53 guest drwxr-xr-x 69 jboonen users 3576 2006-01-30 22:36 jboonen drwxr-xr-x 21 mboonen users 1104 2005-12-24 13:42 mboonen jboonen@linux:~>
This problem also exists in Beta3
I'm not sure if I understand this correctly. The behaviour proposing UID which already exists appeared only during installation, right?
By the way, you probebly didn't have time to solve this problem yet.
Yes, only during new installtion, with the home directory still intact. When i add existing users (of /home)
I can reproduce it
*** Bug 148280 has been marked as a duplicate of this bug. ***
Fixed for next beta
*** Bug 148413 has been marked as a duplicate of this bug. ***