On 8/4/22, Ishaan Mahajan <ishaanamaha...@gmail.com> 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? > Have a great day ahead!
Does this line: chmod 0440 /etc/sudoers.d/USERNAME Need to continue using "$" as part of its variable? That stood out as different. If that's not it, I'm totally out on a very thin limb (beyond my payscale) here. :) Cindy :) -- Talking Rock, Pickens County, Georgia, USA * runs with birdseed *