Creating an interactive shell

I created a script that adds a user named ammar as can be seen on the screen shot provide but it still marked me wrong that the user did not exist even when i ran the script and it created the user
Is there any other way i need to use to create a non interactive shell
please advise

You must specify the shell for user. Non-interactive in this case.
You can do it with this command on stapp02 server:
sudo adduser ammar-s /sbin/nologin

1 Like

Thank you sir.
This solved the issue.