[MLUG] NFS all_squash

Michel-André michelandre at micronator.org
Tue Dec 30 20:35:59 EST 2008


      7.7. Real permissions don't match what's in /etc/exports

|/etc/exports| is /very/ sensitive to whitespace - so the following 
statements are not the same:

/export/dir hostname(rw,no_root_squash) 
/export/dir hostname (rw,no_root_squash)

The first will grant /hostname/ *|rw|* access to |/export/dir| without 
squashing root privileges. The second will grant /hostname/ *|rw|* 
privileges with root squash and it will grant everyone else read/write 
access, without squashing root privileges. Nice huh?


http://nfs.sourceforge.net/nfs-howto/ar01s07.html#permissions_dont_match_exports

Michel-André
*************************************************

Stefan Monnier a écrit :
>> I'm in the process of setting up and NFS server.  Simple enough, except 
>> the all_squash isn't working. :-(
>>     
> [...]
>   
>> # ls -l
>> -rw-rw-r--    1 10028 5011    497 2008-12-29 17:00 mirror.txt
>> -rw-rw-r--    1 10001 5011    401 2008-02-08 10:50 mirror.txt.bak
>>     
>
> You misunderstand all_squash: it does not affect the uid/gid info sent
> over from the server.  It only affects the uid/gid info sent from the
> client to the server (i.e. the server decides to override the uid/gid
> data sent by the client).
>
>
>         Stefan
> _______________________________________________
> mlug mailing list
> mlug at listserv.mlug.ca
> https://listes.koumbit.net/cgi-bin/mailman/listinfo/mlug-listserv.mlug.ca
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/mlug-listserv.mlug.ca/attachments/20081230/6d7117ac/attachment.htm 


More information about the mlug mailing list