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 698449 - Handle creating a new user with an identical name to an old one
Handle creating a new user with an identical name to an old one
Status: RESOLVED OBSOLETE
Product: gnome-control-center
Classification: Core
Component: User Accounts
3.8.x
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-04-20 13:08 UTC by Allan Day
Modified: 2021-06-09 16:14 UTC
See Also:
GNOME target: ---
GNOME version: 3.7/3.8


Attachments
always delete user's files when account is removed (3.24 KB, patch)
2014-09-18 15:23 UTC, Ondrej Holy
needs-work Details | Review

Description Allan Day 2013-04-20 13:08:07 UTC
From bug 681773:

"currently when you delete an account without deleting the files,
and then create another user account with the same user name, that new user
gets all the user's files. This works as expected if you understand how unix
users work, but not necessarily expected otherwise. In addition it may cause
problems if the new user has a different uid."

There are a number of options here:

 * Always delete a user's files when their account is removed
 * When the new user account is created, ask whether the old account's files are to be used, and do the necessary chown foo

I think that the main question here is - why would you want to keep the old files, and why would you like to create a new user account with the files from an old one?
Comment 1 Ondrej Holy 2014-09-18 15:23:05 UTC
Created attachment 286511 [details] [review]
always delete user's files when account is removed

Do not make sense to me to not delete the files together with account...
Comment 2 Bastien Nocera 2014-09-18 18:17:07 UTC
Review of attachment 286511 [details] [review]:

That's not really how we should do it.

Instead, we shouldn't allow creating the new user, I would think. Or mention that the user's files are in the way.
Comment 3 Matthias Clasen 2014-09-22 13:43:03 UTC
> I think that the main question here is - why would you want to keep the old
> files, and why would you like to create a new user account with the files from
> an old one?

You want to keep the old files because they might contain valuable content that needs to be preserved, even  if the user is no longer on the system. Think ex-employee.

We could probably avoid the problem with user-recreation by tarring up the home directory and archiving it somewhere. But the tools we are currently using (userdel indirectly via accountsservice) do not offer this functionality.
Comment 4 Bastien Nocera 2015-04-14 11:39:37 UTC
Review of attachment 286511 [details] [review]:

Marking as needs-work as per comments
Comment 5 André Klapper 2021-06-09 16:14:12 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new bug report at
  https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/

Thank you for your understanding and your help.