Kodekloud engineer non-interactive shell

Hi Team,

I was given task to create user with non-interactive shell.
I created the same but still it showed unsuccesful.
Below is the output for reference. Please verify

[tony@stapp01 ~]$ cat /etc/passwd | grep yousuf
yousuf:x:1002:1002::/home/yousuf:/bin/nologin

image

Hello @gyan,
It seems like an assigned path is wrong. It should be /sbin/nologin.

Regards,
KodeKloud Support