I'm creating a shell script that needs to update the sudoers file. So basically I want to be able to append ":/usr/local/bin/" to the following text in /etc/sudoers:
secure_path = /sbin:/bin:/usr/sbin:/usr/bin
I need to use sudo in the command in order to gain the permissions to modify. Any idea how I can accomplish that?