![]() ![]() For that, we need to add the new user to the sudo group. New users by default, will not be able to modify files out of their home directory. You can leave all of this information blank, just hit Enter. ![]() Once the password is successfully set, the command will ask about additional information of the user. ![]() This command will prompt you to enter the password for the new user’s account and then confirm it by retyping. # adduser newusernameįor example, here we are adding nick as the new user. To create a new user we are going to use adduser command here. Then you will typically receive a password through email use this password to login. If you have created a server instance without selecting an SSH key to use for authentication. Here replace server_ip_address with the IP address of your server. Let’s start by logging in as a root user on Debian server via SSH # ssh _ip_address In this guide, we will see how to create a new user and then add that user or any other user to sudoers group on Debian. But the condition here is that the user who wants to use sudo needs to be in the sudo group on Debian. Basically sudo lets a regular user exercise some of the superuser powers. For instance, when a regular user wants to perform administrative tasks they can perform using sudo command. So to perform everyday administrative tasks sudo comes in. And Linux doesn’t even have an Undo option making another root account is risky. But we can’t make everybody a root user as it will be extremely dangerous. Tasks like installing, updating, upgrading, deleting important files, modifying configuration files, starting and stopping system services require root powers.Īs these tasks can modify the system and sometimes even harm the system they require root privileges. A superuser is a root user that has full system access and can do pretty much everything on the system. Sudo stands for superuser do means whats superuser can do. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |