After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 132593 - user-admin do not remove user directory
user-admin do not remove user directory
Status: RESOLVED FIXED
Product: gnome-system-tools
Classification: Deprecated
Component: users-admin
0.31.1
Other Linux
: Normal normal
: ---
Assigned To: Carlos Garnacho
Carlos Garnacho
Depends on:
Blocks:
 
 
Reported: 2004-01-26 19:04 UTC by Mario Vazquez
Modified: 2010-01-11 20:37 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Mario Vazquez 2004-01-26 19:04:41 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
Comment 1 Jaap A. Haitsma 2005-03-28 13:42:07 UTC
Please ask in the interface if the directory has to be removed. It could be that
you temporary want to disable a user account
Comment 2 Martin 2009-03-07 14:02:39 UTC
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.
Comment 3 Milan Bouchet-Valat 2010-01-11 20:37:13 UTC
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)