Bug 420661 - Querying file access permissions behaves differently for RHEL3 than other releases
Summary: Querying file access permissions behaves differently for RHEL3 than other rel...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: bash
Version: 3.9
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Roman Rakus
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-12-11 22:28 UTC by Darcy Christensen
Modified: 2014-01-13 00:07 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-08-11 13:59:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Darcy Christensen 2007-12-11 22:28:22 UTC
Description of problem:
When querying the file access permissions of a symbolically linked automounted 
directory, particularly -w, from a shell script as root, in RHEL3 the file 
shows as writable when it is mounted as read only.  When the write is 
attempted, of course, it fails.  Apparently RHEL3 uses file premissions behind -
w test where RHEL4, and many other flavors of Linux/UNIX, use the access system 
call, which works correctly.  Is there a work around for this to make this test 
work across multiple Linux/UNIX platforms?

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


How reproducible: Consistantly


Steps to Reproduce:
1.Automount a directory as read only
2.Create a symbolic link to it
3.Write a script testing the -w access (if [ -w dir_name ] ... )
4.sudo as root and run the script
  
Actual results:
directory tests as writable

Expected results:
directory should test as read only

Additional info:

Comment 1 Darcy Christensen 2007-12-11 22:30:03 UTC
Forgot to mention I work for Oracle and this is a work related issue.

Comment 2 Phil Knirsch 2008-04-16 14:45:21 UTC
Thats most likely a bash related problem though, so i'm reassigning it to that
component.

Read ya, Phil

Comment 4 RHEL Program Management 2008-08-11 13:59:09 UTC
Development Management has reviewed and declined this request.  You may appeal
this decision by reopening this request.


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