Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1803
  • Last Modified:

NFS: different uid/gids

Hello all,

I'm trying to mount a mode 770 dir. I finally got it working with a
anongid option, but still having a problem.  NFS is mapping the numeric
UIDs on the server to username UID's on the client, and they have
different uid/gid's.  How can i fix this??!  Ideally, i want to mount it
read only, and have all the files appear(to the clent) to be owned by
root.  This is the only dir i want to export, so really have no other use
for the map daemon.

Here's the exports from the server:
/web   cs(ro,all_squash,anonuid=65534,anongid=103)

I'm mounting with: mount cyclops:/web /cyclops

Any suggestions?!

TIA,
Ray
0
rdejean
Asked:
rdejean
1 Solution
 
cnbishopCommented:
Why do you want all files to appear as owned by root?  If you want to map UIDs and mount RO, then I may have the solution.
0
 
ahoffmannCommented:
This is not the server's responsibility but the clients.
mount must be told anyhow to use the requested uid/guid. See the
mount man-pages: Mount options for ext2  uid= gui=
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now