I have previously written these two articles for creating users in the main used Linux distributions. Now, I will show you 10 more useradd oneliners, for creating users in all the Linux and Unix systems. Example 1.The most used useradd…
I have previously written these two articles for creating users in the main used Linux distributions. Now, I will show you 10 more useradd oneliners, for creating users in all the Linux and Unix systems. Example 1.The most used useradd…
The /sbin/nologin for Fedora and /usr/sbin/nologin for Debian are two shells that return you a polite message like “this account is not available” and do not allow you to log into the system. This message can be customized. /bin/false is…
When you need to forbid a user to login the Linux system, you lock that user’s account. There are a few ways to do that. The simplest way to lock a user is with the passwd command. Without any option,…
Sometimes you need to give ftp access to a user, but forbid him to login the system. The easiest way to do that is to make /usr/sbin/nologin the user’s default shell, on Debian based systems, and /sbin/nologin on Fedora distros.…