Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Sudo

Sysadmin user with sudo

adduser sysadmin --disabled-password --ingroup sudo && echo 'sysadmin ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

Give yourself sudo permissions without password

echo "`whoami` ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/`whoami` && sudo chmod 0440 /etc/sudoers.d/`whoami`