I'm using AIX 5.3 with sudo 1.6.9p23. Sudoers file grants user
fcomartin permission to run any command as user
fcomarti ALL=(oas) ALL
oas has a bash script called menu, which launches other scripts depending on the selected option.
The problem is that some of the secondary scripts redirect standard output to text file
temp which is owned by
oas user. When this happens the system tells me that user does not have the right permissions to write.
fcomarti uses ksh, the used command is as follows:
sudo -u oas bash menu
(bash because user
oas uses bash).
Menu starts and then menu launches monitorAv script. Inside monitorAv is the line
echo > temp; it then errors saying user
fcomarti does not have the right permissions to write.
How can I resolve this?