Setting up Sudo (Subusers) for SSH Access

Setting up Sudo (Subusers) for SSH Access

When setting up a new server and a client asks for SSH access, this is the process to add a subuser for SSH so that we don't have to give up the root password and risk getting it changed.

1. Edit /etc/sudoers (i.e. nano /etc/sudoers)
2. Insert something similar to the following:

username ALL=(ALL) ALL

under where it says:

root ALL=(ALL) ALL

3. Save the file.

4. Test the newly created user access ACL (sudo su - from the user account level).
    • Related Articles

    • New Access Management User setup on Linux

      1) Login to your accounts.cartika.com account 2) Select your access management service (customers with managed infrastructure in both the US and CAD will have two) 3) Navigate to Login to SolidCP -> Click Login 4) Click on Users under your Hosted ...
    • New Access Management User setup on Windows 2008 / 2008r2

      In order to manage your GDPR compliant access to Windows 2008 You will need to create  1) Login to your accounts.cartika.com account 2) Select your access management service (customers with managed infrastructure in both the US and CAD will have two) ...
    • Rsync over SSH

      How To Use Rsync via SSH OR how to use RSync with a Remote System: Syncing to a remote system is trivial if you have SSH access to the remote machine and rsync installed on both sides. Once you have SSH access verified on between the two machines, ...
    • How to Set up SSH Keys

      About SSH Keys SSH keys provide a more secure way of logging into a virtual private server with SSH than using a password alone. While a password can eventually be cracked with a brute force attack, SSH keys are nearly impossible to decipher by brute ...
    • Reset mysql password

      First try to see if you can login to mysql as root. ssh to root user, or su root from AD login.       mysql If you get an error similar to: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) Then the password is ...