GNOME Bugzilla – Bug 300016
Create user fails without warning if home directory for user already exists
Last modified: 2008-01-08 01:12:18 UTC
Distribution/Version: Ubuntu hoary Imagine you have an old account lying around in the /home partition, /home/foo. Now, from a previous instalation, foo had some random uid, thus /home/foo is owned by this random uid. Now go create user foo (in a lazy attempt to reactivate the account). All looks fine, except that the home directory for foo, /home/foo, is not touched, and no warning is given. If you try to login as foo, obviously this fails since foo can't create files in his own directory. This is not nice. At least a warning should be given that the home dir for the user already exists. Option to "chown" the dir would be a nice bonus.
Or an option to create a new directory, /home/foo2 (foo3, foo4... and so on) for user "foo" if the original directory isn't available. Again, warning would be nice.
<josep> I can confirm a bug #300016 in gst
Also happens if the group already exists. Steps: 1. sudo addgroup test 2. Create user "test" in users-admin => User not created
Ubuntu Bug: https://bugs.launchpad.net/distros/ubuntu/+source/gnome-system-tools/+bug/66051
The Ubuntu bug (existing group) got fixed, u-a now reuses gids. The home directory problem persists though.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
*** Bug 338117 has been marked as a duplicate of this bug. ***