Add new user on non-interactive shell

This is the command I typed :

the message for error :

For this and any other question, you need to include what lab you are doing. If it’s a regular lab or mock exam, that’s a link to the lab. For KodeKloud Engineer, you need to include either:

  • The “curriculum”, level, and name of the task, OR
  • For the 100 Days of Dev Ops, the “day”.

My guess is that you used the wrong command to create the user, since the task wants you to set the shell used by the user, and to have that shell be non-login shell. So what command did you use?

I used this one : sudo useradd mark.

task name : Day 1: Linux User Setup with Non-Interactive Shell

Hi @Lamine

Your command doesn’t work in a non-interactive shell. Please check the detailed solution here and try again.