You can type this command on the terminal to test the new user on the sudo group you have added earlier. Now, it’s time for you to test the new user on the sudo group. To add the new user to the sudo group, you will need to enter the command below on your server terminal.Ĥ. Please note that you can add as many users as you need for your server and add as many users to the sudo group based on your preferences. Adding the New User to the Sudo Group on Debian ServerĪfter adding the new user on the Debian server, you will need to add the new user to the sudo group. You can use these strings of command on the Debian server terminal to create the new user.Īdding new group `example_user' (1001) .Īdding new user `example_user' (1001) with group `example_user' .Ĭreating home directory `/home/example_user' .Ĭhanging the user information for example_userĮnter the new value, or press ENTER for the defaultģ. Keep in mind that you don’t need to fill in the information for all values, so you can keep some values blank or empty. It’s important for you to create a strong password for the new user. The new user will have some privileges based on the preferences you have set for it. In this step, you will create a new user that you will add to the sudo group later. The next step you need to do is to add a new user account using the adduser command. Adding a New User Account on Debian Server To install sudo on the Debian server, you can use the apt command on the terminal by typing it like this.Ģ. So, it’s important for you to install the sudo command on the server after completing the Debian server OS installation, so you can use it to set up your privileges on the server. You might not find any sudo command installed on the server after installing the Debian server OS on the Vultr VPS platform for the first time. This is the guide you can follow to create a sudo user on Debian server, which will apply for Debian version 9 “Stretch”, Debian version 10 “Buster”, and Debian version 11 “Bullseye”. So, by creating a sudo user on your Debian server, you can create a non-root user on the Debian server for a better daily server administration. Keep in mind that the default access privilege for your Debian server on Vultr VPS will be a root user access. Vultr VPS allows you to create a sudo access on your Debian server after you activate it for the first time. This is to prevent any accidental changes on the server settings, which can bring negative effects to the overall server operating system. Of course, it’s best for you to use the regular user privilege in your day-to-day server maintenance process on Debian OS. A regular user can’t perform most of the privilege-based access a sudo user has. You will need to create a sudo user if you want to get the administrative access with the privilege to change various aspects of the Linux server or operating system. A sudo user is the type of user with the highest administrative privilege on most Linux-based servers and operating systems.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |