[elbe-users] v9: error in useradd

ew.foe at nassur.net ew.foe at nassur.net
Mon Aug 19 19:15:52 CEST 2019


Hello,

I think there is a missing blank when concatenating the options
for the "useradd" cmd:


This snippet
        #+begin_src xml
     <adduser uid="0" gid="0"  system="true" create_group="false"
create_home="false" passwd="rootew" shell="/bin/bash">rootew</adduser>
        #+end_src


produces this error message

        #+begin_example
running cmd +chroot
/var/cache/elbe/c74154b9-e396-4639-a37f-eb4b08c2355f/target
/usr/sbin/useradd -s "/bin/bash" -u "0" -g "0" -r-M -N  "rootew"+
------------------------------------------------------------------------------
/usr/sbin/useradd: invalid option -- '-'
Usage: useradd [options] LOGIN
        useradd -D
        useradd -D [options]

Options:
   -b, --base-dir BASE_DIR       base directory for the home directory of
the
                                 new account
...
------------------------------------------------------------------------------

Command failed with errorcode 2
Finetuning Error, trying to continue anyways



The error is here

/usr/sbin/useradd -s "/bin/bash" -u "0" -g "0" -r-M -N  "rootew"+
................................................^^ missing blank


Cheers,
Erich




More information about the elbe-users mailing list