GNOME Bugzilla – Bug 132593
user-admin do not remove user directory
Last modified: 2010-01-11 20:37:13 UTC
when removing a user, the home directory that belongs to that user is not removed. Also happended with users created with user-admin even when the user account has not been used
Please ask in the interface if the directory has to be removed. It could be that you temporary want to disable a user account
I'm not a developer but I consider this issue as important. It should be a matter of a few lines of code to fix this. Show a dialog that asks if the home directory should be deleted or not and than remove it. There could be a problem if the home directory is not on a local file system (but on NFS or AFS or something). That should be checked before the dialog is shown (with hal?!). If the home directory is not on a local file system there should be no dialog and it should not be deleted.
That was not a matter of a few lines of code, I had to change the D-Bus protocol to fix this. We just ask the user what do to. For reference, the fixes are: http://git.gnome.org/browse/gnome-system-tools/commit/?id=74316f08cbb6ba231d6ca799c51ff3fa6ea6df1b http://git.gnome.org/browse/liboobs/commit/?id=f578bedf10dfd289b36ddfd36c0a4770db272380 (partly) http://git.gnome.org/browse/system-tools-backends-clone/commit/?id=37125b5f3ede949e038fccdd2a6fe4022503fc86 (partly)