Re: Adduser only one or. two users
Ishaan Mahajan wrote:
> Hi,
>
> This is the line I have got - RUN sudo adduser --shell $USERSHELLPATH
> --disabled-password --gecos "" $USERNAME && \
> echo "$USERNAME ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/$USERNAME && \
> chmod 0440 /etc/sudoers.d/USERNAME
> However, I keep getting the error,
> adduser: Only one or two names allowed.--
> How do I get around this?
sudo adduser --shell $USERSHELLPATH --disabled-password --gecos "" $USERNAME
That's your first command line. --gecos expects a value. You are
literally supplying no value.
Why don't you leave the --gecos "" out entirely, if you aren't
going to populate it with a human-readable name?
-dsr-
Reply to: