in reply to perl file status and sudo
To give read only access one some file to some people, one can use ACLs, which is implemented on many OSses. To check if a file exists, one would have to be given read/exec access to the directory. And you need read access to the file to determine whether it's a file, or something else.
If it comes to -x and frieds, ACLs aren't going to help you, as they look at the permission bits.
Now, for the given problem, I don't understand why you need more than read-only rights. All you need for -f and -e is read only access anyway.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl file status and sudo
by Saved (Beadle) on Mar 22, 2012 at 13:13 UTC | |
by JavaFan (Canon) on Mar 22, 2012 at 13:25 UTC | |
by Saved (Beadle) on Mar 22, 2012 at 13:56 UTC | |
by JavaFan (Canon) on Mar 22, 2012 at 14:04 UTC | |
by Saved (Beadle) on Mar 22, 2012 at 14:10 UTC | |
| |
by Saved (Beadle) on Mar 22, 2012 at 13:33 UTC | |
by JavaFan (Canon) on Mar 22, 2012 at 13:48 UTC |