2019-02-24 18:47:41 +03:00
|
|
|
# visudo
|
2016-02-20 02:09:13 +03:00
|
|
|
|
2016-02-20 02:09:38 +03:00
|
|
|
> Safely edit the sudoers file.
|
2022-07-27 14:38:46 +03:00
|
|
|
> More information: <https://www.sudo.ws/docs/man/visudo.man>.
|
2016-02-20 02:09:13 +03:00
|
|
|
|
2021-11-26 00:32:48 +03:00
|
|
|
- Edit the sudoers file:
|
2016-02-20 02:09:13 +03:00
|
|
|
|
|
|
|
`sudo visudo`
|
|
|
|
|
2021-11-26 00:32:48 +03:00
|
|
|
- Check the sudoers file for errors:
|
2016-02-20 02:09:13 +03:00
|
|
|
|
|
|
|
`sudo visudo -c`
|
2021-11-26 00:32:48 +03:00
|
|
|
|
2022-06-27 13:17:40 +03:00
|
|
|
- Edit the sudoers file using a specific editor:
|
|
|
|
|
|
|
|
`sudo EDITOR={{editor}} visudo`
|
|
|
|
|
2021-11-26 00:32:48 +03:00
|
|
|
- Display version information:
|
|
|
|
|
|
|
|
`visudo --version`
|