Bug 114864 - Users in "Others" group can not able to execute scripts unless they have read permissions.
Users in "Others" group can not able to execute scripts unless they have read...
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 2.1
Classification: Red Hat
Component: acl (Show other bugs)
2.1
All Linux
medium Severity medium
: ---
: ---
Assigned To: Stephen Tweedie
: Security
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2004-02-03 12:58 EST by Mandar Vaidya
Modified: 2007-11-30 17:06 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-02-03 15:34:04 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Mandar Vaidya 2004-02-03 12:58:08 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)

Description of problem:
Hi,

  If I give users in "Others" group and only give them execute 
permissions, they are not able to execute the scripts. I've to give 
read permissions on the file in order to execute that script.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.Write a small script. say echo "Hi " in script.
2.chmod 751 to that script.
3. Login as a user who is not a owner and not in that group also. and 
execute the script.
    

Actual Results:  It gives result permission denied for that script 
for that user.

Expected Results:  He should be able to execute the scripts as he 
have execute permission.

ls -ld test

-rwxr-x--x    1 root     root           24 Feb  3 11:42 test

./test: ./test: Permission denied 

for that user.


Additional info:

We can execute same thing in other OS like Sun, HPUX. with same 
permissions.
Comment 1 Mark J. Cox (Product Security) 2004-02-03 15:34:04 EST
To execute a shell script the users shell has to be able to read it.  
Comment 2 Mandar Vaidya 2004-02-03 15:53:53 EST
Hi Mark,

  When I called support for this, they asked me to open a bug for 
this. Also I can do similar things on other OS where I can give only 
execute permissions for a script and not a read permission. 

Thanks,
Mandar
Comment 3 Stephen Tweedie 2004-02-03 21:58:37 EST
On Linux, this is simply the way things are --- the shell needs read
access to the file it is running.  It's possible to imagine ways for
the OS to bypass that requirement but given that this is
security-sensitive semantics, Red Hat will always follow the accepted
Linux behaviour here.

Note You need to log in before you can comment on or make changes to this bug.