Re: Adduser only one or. two users

2022-08-14 Thread DdB
Such an excellent advice! Thank you for having taken the time to post this. Yesterday, i was desperate after 24h of running in circles with a scripting problem. When i decided to post a question in here, it took me at least one hour to complete the writing and the gathering of information. Despite

Re: Adduser only one or. two users

2022-08-05 Thread Greg Wooledge
On Fri, Aug 05, 2022 at 11:05:50AM +0530, Ishaan Mahajan wrote: > Sorry for another email but this is what it looks like now - RUN sudo > adduser --shell $USERSHELLPATH --disabled-password $USERNAME && \ > However, I am still running into the same problem. You need to listen to what people have al

Re: Adduser only one or. two users

2022-08-04 Thread Ishaan Mahajan
Sorry for another email but this is what it looks like now - RUN sudo adduser --shell $USERSHELLPATH --disabled-password $USERNAME && \ However, I am still running into the same problem. Thanks, Ishaan On Thu, Aug 4, 2022 at 10:53 PM Dan Ritter wrote: > Ishaan Mahajan wrote: > > Hi, > > > > Thi

Re: Adduser only one or. two users

2022-08-04 Thread tomas
On Thu, Aug 04, 2022 at 12:17:54PM -0600, Charles Curley wrote: > On Thu, 4 Aug 2022 13:23:11 -0400 > Dan Ritter wrote: > > > sudo adduser --shell $USERSHELLPATH --disabled-password --gecos "" > > $USERNAME > > > > That's your first command line. --gecos expects a value. You are > > literally su

Re: Adduser only one or. two users

2022-08-04 Thread Charles Curley
On Thu, 4 Aug 2022 13:23:11 -0400 Dan Ritter wrote: > 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 a

Re: Adduser only one or. two users

2022-08-04 Thread Greg Wooledge
On Thu, Aug 04, 2022 at 01:24:04PM -0400, Cindy Sue Causey wrote: > On 8/4/22, 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

Re: Adduser only one or. two users

2022-08-04 Thread Dan Ritter
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

Re: Adduser only one or. two users

2022-08-04 Thread Cindy Sue Causey
On 8/4/22, 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

Adduser only one or. two users

2022-08-04 Thread Ishaan Mahajan
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 allo