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:
Forgot to mention I work for Oracle and this is a work related issue.
Thats most likely a bash related problem though, so i'm reassigning it to that component. Read ya, Phil
Development Management has reviewed and declined this request. You may appeal this decision by reopening this request.