-
Notifications
You must be signed in to change notification settings - Fork 30
Description
There is currently no supported way to remove users and groups from the authd database. We want to create a command-line tool which allows doing that.
There are two issues when a user or group which still owns files on the filesystem is removed:
- When this user logs in again (or in the group case, a user who is a member of the group logs in), a new random UID/GID is generated, which means any existing files owned by the user/group won't be accessible to the user/group anymore.
- Whenever another authd user/group is added, the random UID/GID generated for that can by chance be the same as the one of the deleted user/group, allowing access to any existing files still owned by the deleted user/group.
The same is true when local users/groups are deleted via deluser/delgroup etc. There's an argument that it's worse in the authd case, because new users/groups are created without admin interaction, just by a new user logging in (unless the new device owner configuration is used, then admin interaction is actually required), so that's it's more surprising / less expected.
We want to make our users aware of that, so the tool should print a message and/or ask for confirmation when deleting a user/group. We should also support disabling a user instead of removing it, so that the user can't log in anymore but its UID is still reserved.