6/18/2023 0 Comments Game cih the system deny to root![]() The flag -m means create user’s home directory and -c allows to specify a comment: # useradd -m -c "Admin User" admin ![]() In this article, we will explain four ways to disable root user account login in Linux.Īttention: Before you block access to the root account, make sure you have created an administrative account, capable of using sudo command to gain root user privileges, with the useradd command and give this user account a strong password. Therefore, it is advisable to disable the root access in your Linux server, instead, create an administrative account which should be configured to gain root user privileges using the sudo command, to perform critical tasks on the server. In addition, this account may also be abused by using it improperly or inappropriately either accidentally, maliciously, or through contrived ignorance of policies. In this regard, any errors by the root user may have huge implications on the normal operation of a system. It is used to perform any kind of task on a system to create/update/access/delete other users’ accounts, install/remove/upgrade software packages, and so much more.īecause the root user has absolute powers, any actions he/she performs are critical on a system. ![]() This account has access to all commands and files on a system with full read, write and execute permissions. The root account is the ultimate account on a Linux and other Unix-like operating systems.
0 Comments
Leave a Reply. |