Use sudo su to login without any password prompt Rumi, January 15, 2024 Step 1 Edit sudoers file with command visudo: $ visudo You should get something similar to this content: # # This file MUST be edited with the ‘visudo’ command as root. # # Please consider adding local content in /etc/sudoers.d/ instead of # directly modifying this file. # # See… Continue Reading
Add User to Sudoers on CentOS Rumi, March 21, 2023March 21, 2023 You can do this in 2 methods- however, IMHO method-2 usually works great for me. Method-1 Step 1: Verify the Wheel Group is Enabled Your CentOS 7 installation may or may not have the wheel group enabled. Open the configuration file by entering the command: visudo Scroll through the configuration… Continue Reading
Creating a Sudo User in Debian or Ubuntu Rumi, April 14, 2022 Creating a Debian Sudo User Creating a Debian sudo user involves a few simple steps. This procedure does not require you to edit the sudoers file. If you have an existing user that you want to grant sudo privileges, skip Step 2. Step 1: Log in as the Root User… Continue Reading
Create a Sudo User on Debian or Ubuntu Rumi, January 29, 2017 Log in to your server as the root user. ssh root@server_ip_address Use the adduser command to add a new user to your system. Be sure to replace username with the user that you want to create. adduser username Set and confirm the new user’s password at the prompt. A strong… Continue Reading