Bug 114864 - Users in "Others" group can not able to execute scripts unless they have read permissions.
Summary: Users in "Others" group can not able to execute scripts unless they have read...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 2.1
Classification: Red Hat
Component: acl
Version: 2.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Stephen Tweedie
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-02-03 17:58 UTC by Mandar Vaidya
Modified: 2007-11-30 22:06 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-02-03 20:34:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Mandar Vaidya 2004-02-03 17:58:08 UTC
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 2004-02-03 20:34:04 UTC
To execute a shell script the users shell has to be able to read it.  


Comment 2 Mandar Vaidya 2004-02-03 20:53:53 UTC
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-04 02:58:37 UTC
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.