Consider the following two files.
summarize's executable UID bit has been set, so that another user belonging to another group can execute the summarize executable that uses the customers.dat file.
-rw------- steve sales customers.dat -rwsr-xr-x steve sales summarize
Now consider the following two files:
-rwxrwx--- 1 root root 5974 May 17 13:53 1.out -rwsrwsrwx 1 root root 5970 May 17 14:03 a.out
Both are executables, and I want that some other user runs
a.out, which calls
1.out within itself using the
But I am always getting permission denied error
sh: ./1.out: Permission denied
To me, both scenarios look the same. Why do I get the permission denied error? Am I missing something?