My system has an app installed at /opt with root as the owner. I'm trying to accomplish 2 things (edit and compile) but I'll focus on the first one, which is simpler to explain. Because everything is owned by root, I can actually edit using sudo but opening any of these as the user (centos) states that the file is readonly (all of this is the expected behavior). To be able to edit the file as the user, I'm trying to modify sudoers but here it's where I'm unsure how to proceed. The sudoers file has about 127 lines but the ones I'm looking at are:
Code: Select all
...
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
...
## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment)
#includedir /etc/sudoers.d
centos ALL=(ALL) NOPASSWD: ALL
Thanks.