Hi Everyone,
To edit the Sudoers file you enter:
export EDITOR=gedit && sudo visudo
However, I want to update my script to place some text in this file without actually opening it up.
I know how to do this with other files, but when I do it to Sudoers it corrupts the file in some way and then you have NO sudo priviliges anymore. Basically, you have to do a re-install.
Sudoers has 440 permissions and belongs to root.
I thought to change the permissions and even chmod it from root to user to add text and then put it back. However, that didn't work for me either.
Does anyone have an idea of how it could be done?
Thanks in advance for any help ...
Bookmarks