Skip to content

Support deletion of users and groups via authctl #640

@adombeck

Description

@adombeck

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:

  1. 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.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions