# Sudo without Password

## Apply the Setting

Execute the following command:

```bash
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:

```bash
sudo sed -i 's/^Defaults    requiretty/#Defaults    requiretty/' /etc/sudoers
```

## Rollback the Setting

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