nologin shell

A login shell that politely refuses interactive logins, used for accounts that run services.

In more detail

Setting an account's shell to /sbin/nologin lets it own files and run a daemon while nobody can log in as it. The program prints a refusal and exits.

Example

useradd -r -s /sbin/nologin svcbackup creates a service account nobody can log in as.

Related terms

Taught in

References

Certification courses