in the /etc/sudoer
file this line was added:
wtolentino ALL=(ORACLE) NOPASSWD: /bin/chmod
when i tried to run this command
sudo -u oracle /bin/chmod 775 /appshared/applications/lpa/executables/chrpt001.rep
it prompts me for a password
for example:
$ pwd
/appshared/applications/lpa
$ ls -l
total 48
drwxrwxr-x 2 wtolenti staff 4096 Mar 02 12:46 doc
drwxrwxrwx 2 wtolenti staff 16384 Mar 13 10:11 executables
drwxrwxr-x 5 wtolenti staff 4096 Feb 16 08:37 source
$ cd executables
$ ls -l chrpt001.rep
-rw-r--r-- 1 oracle oinstall 98304 Mar 13 10:11 chrpt001.rep
$ sudo -u oracle /bin/chmod 775 /appshared/applications/lpa/executables/chrpt001.rep
Password:
the file is chrpt001.rdf is owned by oracle and i am attempting to change the permission using the sudo command.
please advise.
thank you.