Root and sudo

Root login

ssh root@server-ip

Creating sudo user

adduser newuser
usermod -aG sudo newuser

Sudo commands

# Run as root
sudo apt update

# Root shell
sudo -i

# As another user
sudo -u www-data command

Sudoers configuration

visudo

# Without password
user ALL=(ALL) NOPASSWD: ALL

Need help?

We're here for you! Running into issues or have questions? Our support team is happy to help you personally. Drop us a message through the ticket system - we usually respond within a few hours and love helping you find the best solution.