I have a script in one of I my root directory: /root/scripts/script1.sh
I wan't to call that script as another user (james1).
I did the following (as root user):
root@pc83$ CD scripts root@pc83$ chown -R james1:user scripts root@pc83$ CD scripts root@pc83$ chmods 755 script1.sh
This made James 1 the owner of the script then I went to scripts directory and changed script1.sh permission to 755 which lets other execute.
Still when I connect as james1s and try to run script1. I can't.
I get permission denied error. Could some please let me know where I am going wrong? thanks.
I am using Oracle Enterprise Linux but tried to replicate the same problem in Ubuntu 10.10 and had the same issue.