Bug 146477 - UID Not correct when recycling a user a user on a new install
Summary: UID Not correct when recycling a user a user on a new install
Status: RESOLVED FIXED
: 148280 148413 (view as bug list)
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: YaST2 (show other bugs)
Version: Beta 2
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Jiří Suchomel
QA Contact: Klaus Kämpf
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-28 20:18 UTC by Joop Boonen
Modified: 2006-02-06 16:46 UTC (History)
2 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
YaSST log files (257.54 KB, application/x-gtar)
2006-01-29 16:47 UTC, Joop Boonen
Details
Latest YaST log files (182.14 KB, application/x-gtar)
2006-01-30 21:39 UTC, Joop Boonen
Details
Screen shots of adding the users (207.62 KB, application/x-gtar)
2006-01-30 21:41 UTC, Joop Boonen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joop Boonen 2006-01-28 20:18:08 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
Comment 1 Christian Boltz 2006-01-29 00:19:37 UTC
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)
Comment 2 Joop Boonen 2006-01-29 16:45:52 UTC
I've changes the manualy. because they aren't correct.

user1 = jboonen
user2 = mboonen
user3 = guest
Comment 3 Joop Boonen 2006-01-29 16:47:41 UTC
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.
Comment 4 Michael Gross 2006-01-30 13:39:38 UTC
Joop: What userids did YaST suggest in the first place, before you changed anything? Did it really assign one UID to two users?
Comment 5 Joop Boonen 2006-01-30 14:41:43 UTC
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.
Comment 6 Joop Boonen 2006-01-30 21:38:35 UTC
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.
Comment 7 Joop Boonen 2006-01-30 21:39:33 UTC
Created attachment 65767 [details]
Latest YaST log files
Comment 8 Joop Boonen 2006-01-30 21:41:21 UTC
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.
Comment 9 Joop Boonen 2006-01-30 21:45:11 UTC
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:~>
Comment 11 Joop Boonen 2006-02-06 11:59:10 UTC
This problem also exists in Beta3
Comment 12 Jiří Suchomel 2006-02-06 11:59:39 UTC
I'm not sure if I understand this correctly. The behaviour proposing UID which already exists appeared only during installation, right?
Comment 13 Joop Boonen 2006-02-06 12:00:29 UTC
By the way, you probebly didn't have time to solve this problem yet.
Comment 14 Joop Boonen 2006-02-06 12:01:56 UTC
Yes, only during new installtion, with the home directory still intact. When i add existing users (of /home)
Comment 15 Jiří Suchomel 2006-02-06 13:32:17 UTC
I can reproduce it
Comment 16 Michael Gross 2006-02-06 13:43:05 UTC
*** Bug 148280 has been marked as a duplicate of this bug. ***
Comment 17 Jiří Suchomel 2006-02-06 16:13:28 UTC
Fixed for next beta
Comment 18 Jiří Suchomel 2006-02-06 16:46:52 UTC
*** Bug 148413 has been marked as a duplicate of this bug. ***