Tuesday, January 19, 2016

FreeBSD: configuring sudo

- In order to use the sudo program, it's necessary to log in as root and execute the following command to edit sudo configuration file:

sudo visudo

which is basically editing the configuration file /usr/local/etc/sudoers using vi text editor.


- To allow the admin user to use sudo program, the following line was added:

admin ALL=(ALL) ALL


- This is a very basic and straightforward configuration. For more options and security, it must be enhanced later on depending on your operating system configuration and purpose.


Reference:
https://www.digitalocean.com/community/tutorials/how-to-edit-the-sudoers-file-on-ubuntu-and-centos

No comments:

Post a Comment