Security News > 2020 > February > How to create a Linux user that cannot log in

How to create a Linux user that cannot log in
2020-02-25 21:58

For security reasons, you might need to create a Linux user without the ability to log in.

As a Linux system administrator, there are times when you might need to create a user who doesn't have the ability to log in.

When would that type of user be necessary? Say you have to create a user for an application to function properly, but you don't want that user to either have a home directory or the ability to log in.

The above method will create the account without a password and no shell so it cannot log in.

Congratulations, you now know how to create Linux system users who cannot log in and do not have a home directory-use those users wisely.


News URL

https://www.techrepublic.com/article/how-to-create-a-linux-user-that-cannot-log-in/#ftag=RSS56d97e7

Related vendor

VENDOR LAST 12M #/PRODUCTS LOW MEDIUM HIGH CRITICAL TOTAL VULNS
Linux 11 64 2337 1501 67 3969