Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^4: -r broken on root_squash NFS?

by zigdon (Deacon)
on Jun 06, 2008 at 22:18 UTC ( #690773=note: print w/replies, xml ) Need Help??

in reply to Re^3: -r broken on root_squash NFS?
in thread -r broken on root_squash NFS?

Could be, I guess, but a quick strace shows it does call 'stat' to get the permissions. But I guess that, on it's own, doesn't tell if the root is squashed or not, so there's no way for perl to know.

-- zigdon

Replies are listed 'Best First'.
Re^5: -r broken on root_squash NFS?
by sgifford (Prior) on Jun 06, 2008 at 22:31 UTC
    That's exactly right, there's not enough information for Perl or the OS to know. The simplest solution is to just try and open the file and see if it fails with a "permission denied" error.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://690773]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2020-02-21 06:55 GMT
Find Nodes?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?

    Results (93 votes). Check out past polls.