Day 1 Of Devops Linux lab is not taking my answer

Please correct me if I am wrong

question
To accommodate the backup agent tool’s specifications, the system admin team at xFusionCorp Industries requires the creation of a user with a non-interactive shell. Here’s your task:

Create a user named jim with a non-interactive shell on App Server 3.

Note: You can find the infrastructure details by clicking on the Details of all Users and Servers button on the top-right section of the page.

Steps I followed

Logged in to Appserver 3 and then use below commands

for log in to APP server 3

ssh banner@172.16.238.12

entered password : BigGr33n

After I am on Appserver 3
entered command

sudo useradd -s /sbin/nologin jim

Tell me where I am wrong on this

I waited 10 mins before submitting

Hi @magnite

I don’t see anything wrong with your answer. Do you still have a screenshot of the error message?

please use adduser jim -s /sbin/nologin

After
sudo useradd -s /sbin/nologin jim

Just verify

getent passwd jim

What error did you get on grading? Sometimes people do this task on the wrong system.

Personally, I think we should be able to set the shell to be /dev/null. :roll_eyes:

It’s what I always did as a Unix/Linux SysAdmin and “it still works fine.” :joy::joy::joy:

(Solaris 2.5.1, AIX 5.1, HP-UX 11.00, RHEL 6)

It may, but it lets your intentions be less clear. /sbin/nologin makes your intention completely clear, so that makes it a best practice.