But, when ever I tried it with 705, it works fine.
Since I have a password embedded in the script "download", I want to give execute only privileges to the other user.
The nature of a script is that it needs to be executable and readable (by the script interpreter).
Try to switch to another user that owns the script.
Like
@panyam:
I have already tried that, but wasn't helpful.
@madeInGermany:
When I tried sudo -u mgr ./download.sh, it's prompting to enter the password of the user "mgr". As I mentioned earlier, the mgr password can't be shared.
sudo -u mgr ./download
[sudo] password for mgr:
These are the current permissions I have on the script.
ls -ltr download
-rwx--x--x 1 mgr mgr 1970 Feb 26 13:42 download