AUTHCTL(1)

NAME
authctl - Manage authd users and groups

SYNOPSIS
authctl [options] <command> [args]

DESCRIPTION
authctl is a command-line tool for managing users and groups handled by authd.

COMMANDS

user lock <user>
    Lock a user so that they cannot log in.

user unlock <user>
    Unlock a locked user so that they can log in again.

user set-uid <user> <uid>
    Set the UID of a user managed by authd to the specified value.

    The new UID must be unique and non-negative. The command must be run as root.

    The ownership of the user's home directory, and any files within the directory that the user owns, will automatically be updated to the new UID.

    Files outside the user's home directory are not updated and must be changed manually. Note that changing a UID can be unsafe if files on the system are still owned by the original UID: those files may become accessible to a different account that is later assigned that UID.

group set-gid <group> <gid>
    Set the GID of a group managed by authd to the specified value.

    The new GID must be unique and non-negative. The command must be run as root.

    When a group's GID is changed, any users whose primary group is set to this group will have the GID of their primary group updated. The home directories of these users, and any files within these directories that are owned by the group, will be updated to the new GID.

    Files outside users' home directories are not updated and must be changed manually. Note that changing a GID can be unsafe if files on the system are still owned by the original GID: those files may become accessible to a different group that is later assigned that GID.

SEE ALSO
For more information, please refer to the authd documentation[1].

NOTES

1.  authd documentation
    https://documentation.ubuntu.com/authd