Very weird problem with permissions

Okay, I have a bash script calling another program that is in another directory.

Both permissions for these programs are set exactly the same:

program 1 = owned by root, chmod'ed to 711

program 2 = owned by root, chmod'ed to 711

program 1's directory = owned by root, chmod'ed to 755 (rwxr-xr-x)

program 2's directory = owned by root, chmod'ed to 755 also.

program 1 is a bash script, and runs program 2. However when a normal user tries to run program 1 they get "permission denied", but can run program 2 by itself even though the ownership and permissions are exactly the same as program 1. If i change the owner of program 1 to the user they can then run it, but can't run it if they aren't the owner even though the permissions are set to 711.

Any idea what the problem could be?! I know this is sort of vague but this is really weird and i am kind of lost here...

 

 

 

 

Top