Hands-on task
Only nginx reload for the deployer
The user releaser will handle site deployments: after uploading files they need to reload the nginx config without typing a password. Full root isn't on the table. Use sudoers to let releaser run only /usr/sbin/service nginx reload without a password — they must not be able to stop nginx, touch other services or start a shell.
- sudoers.d
- NOPASSWD
- visudo -c
- least privilege
- sudo -l