[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Adduser only one or. two users



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?  
Have a great day ahead!

Best,
Ishaan Mahajan

Reply to: