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

Version
1.3.0-rc5
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)