What are interactive and non-interactive shell?
Questions: Create a user john who should not get an interactive shell.
How can we do this?
Traditionally, identities that are used to own processes or files or other resources have their "shell" set to
The pseudo-user syslog owns
Regarding the question you are trying to answer:
The question means "Create a user named
There is also the non-interactive mode, where the user saves a series of commands they want to run in a file (called a shell script), and executes the file afterwards. Some commands behave differently depending on whether the shell is run interactively or non-interactively. You can read more here (this document is for
On how to create such a user, if you skim through
Yes, change the shell in the password file (/etc/passwd) to some program that will not not allow a shell escape.
if you want to be a bofh /bin/false will do exactly what you want.