EN: Oz Knowledge Base
Comment on page

Sudo without Password

Instructions for disabling interactive requests for the sudo mode (useful for automatic deployment).

Apply the Setting

Execute the following command:
echo "your_user_name ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/oz-user
Then, check sudo. If password is still requested, execute an additional command:
sudo sed -i 's/^Defaults requiretty/#Defaults requiretty/' /etc/sudoers

Rollback the Setting

sudo rm /etc/sudoers.d/oz-user
# optional:
sudo sed -i 's/^#Defaults requiretty/Defaults requiretty/' /etc/sudoers