Blog Archives

5 Useradd Command Examples, With Explanations

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

Tagged with: , , , , , , , ,
Posted in The Linux and Unix Articles!

How to lock and unlock a user account in Linux

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,

Tagged with: , , , , ,
Posted in The Linux and Unix Articles!

How to allow users to connect only to the ftp

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.

Tagged with: , , , , ,
Posted in The Linux and Unix Articles!
Subscribe

  

Subscribe to get the latest Linux news and how to guides directly on your e-mail!