Re: bash -r operator not understanding ACLs
Zoltan Sekeres <[email protected]> Fri, 26 Aug 2005 16:51:42 +0200
| Newsgroups | gmane.linux.file-systems.acl.devel |
|---|---|
| Organization | zoliton |
| Message-ID | <1125067902.3376.7.camel@vimes> |
On Fri, 2005-08-26 at 12:51 +0200, Marcus Better wrote:
> I have a file which is owned by a different user, but with ACLs set so
> that it is readable by me. However if I use the bash -r operator to test
> if the file is readable I get a negative result. I also get the same
> result using the Perl -r operator.
In Perl you can switch to a mechanism wich acknowledges ACLs:
http://search.cpan.org/dist/perl/lib/filetest.pm
Sample given on this page:
===SNIP===
$can_perhaps_read = -r "file"; # use the mode bits
{
use filetest 'access'; # intuit harder
$can_really_read = -r "file";
}
$can_perhaps_read = -r "file"; # use the mode bits again
===SNIP===
--
Zoltan Sekeres <[email protected]>
zoliton
_______________________________________________
acl-devel mailing list
[email protected]
http://acl.bestbits.at/mailman/listinfo/acl-devel