Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: -r broken on root_squash NFS?

by pc88mxer (Vicar)
on Jun 06, 2008 at 21:22 UTC ( [id://690767]=note: print w/replies, xml ) Need Help??


in reply to -r broken on root_squash NFS?

The root_squash option means that root will be mapped to the user nobody. That's why the file is not readable by root.

Sorry, misunderstood the question. See a better answer below.

Replies are listed 'Best First'.
Re^2: -r broken on root_squash NFS?
by zigdon (Deacon) on Jun 06, 2008 at 21:23 UTC
    Right... But why does '-r' still says it's readable?

    -- zigdon

      You're right. I bet perl is determining readability by calling access(2). From the man page:
        access() may not work correctly on NFS file systems  with  UID  mapping
        enabled,  because UID mapping is done on the server and hidden from the
        client, which checks permissions.
      
      and root_squash is a server option.
        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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-03-28 14:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found