Skip to content

passwd does not accept fully qualified usernames (user@domain) #1626

@nooreldeenmansour

Description

@nooreldeenmansour

As reported in canonical/authd#1487

Attempting to use passwd command for UPN formatted usernames fails

$ sudo passwd <user>@<domain>
passwd: Provided user name is not a valid name

It is failing because this function call was added is_valid_user_name(). The @ character isn't in the allowed set, causing passwd user@domain.com to fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions