Comment 5 for bug 18632

Revision history for this message
Sivan Greenberg (sivan) wrote : Re: Users and groups-tool failed to create home folder after deleting user and adding a new user in the same operation

okay, I patched it to check inside users-conf (s-t-b) if the home of the modified user does not exist. if it is indeed missing, then I am creating it there. However, now the bug is sovled, but since this is not done through adduser or usermod's user creation, the login defs for creating a new user's home are also not applied, resulting in a missing Examples (example content) symlink and probably other stuff.

Checking with usermod , I see that it has a -d flag to specify the home folder to create for the user - and the backend does use this flag. So it currently puzzles me why it didn't work the first place. Idea anyone? (I could hack it some more to add the missing symlink, but this is really ugly and will enralge the patch even more)