Page MenuHomeVyOS Platform

login: verify selected "system login user" name is not already used by the base system.
Closed, ResolvedPublicBUG

Description

vyos@vyos# commit
[ system login ]
Adding user "backup" raised exception: "[Errno 9] failed to run command: useradd --create-home --no-user-group --shell /bin/vbash --password 'REDACTED JUST IN CASE' --comment 'Backup User' --home '/home/backup' --groups frrvty,vyattacfg,sudo,adm,dip,disk backup
returned:
exit code: 9"

MAN

EXIT VALUES
       The useradd command exits with the following values:

       0
           success

       1
           can't update password file

       2
           invalid command syntax

       3
           invalid argument to option

       4
           UID already in use (and no -o)

       6
           specified group doesn't exist

       9
           username already in use

       10
           can't update group file

       12
           can't create home directory

       14
           can't update SELinux user mapping

Details

Difficulty level
Easy (less than an hour)
Version
1.3.0-rc5
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

c-po changed the task status from Open to In progress.Jul 23 2021, 5:29 PM
c-po claimed this task.
c-po added a project: VyOS 1.4 Sagitta.
SrividyaA set Issue type to Bug (incorrect behavior).Wed, Sep 1, 10:37 AM