How to configure a fixed user ID on an NFS server?
Solution 1
Put -mapall=user
into your exports
file.
See man exports
for details
Solution 2
This is possible, look at the User ID mapping section in the exports manpage.
Basically you want this in the exports line: all_squash anonuid=whatever anongid=whatever
If you're not on linux but on BSD, do what Chris S said.
Related videos on Youtube
BenMorel
Author of Brick, a collection of open-source libraries for PHP applications: brick/math : an arbitrary-precision arithmetic library brick/money : a money and currency library brick/date-time : a date and time library brick/phonenumber : a phone number library brick/geo : a GIS geometry library brick/varexporter : a powerful alternative to var_export() ... and a few others.
Updated on September 18, 2022Comments
-
BenMorel over 1 year
I'd like my NFS server to always use the same user ID to own the files, whatever user ID is used on the client.
Is this possible and how?
-
BenMorel over 10 years@Gilles OSX Lion's built-in NFS server
-