[OpenIndiana-discuss] NFS4 users

Alex Smith (K4RNT) shadowhunter at gmail.com
Tue Jul 26 15:15:40 UTC 2011


My bad - I haven't done heavy NFS sharing since Solaris 9 and that was
using NIS. I'm currently sharing a ZFS file system with sharenfs=ro at
this time, so I'm probably not the best person to ask lol.

Let us know what works for you.

2011/7/26 Ignacio Marambio Catán <darkjoker at gmail.com>:
> yes, no_root_squash is a linux setting, it is what you achieve with
> root= in solaris.
> As far as i know id mapping (uid to uid) was not really necessary in
> nfs4 because nfs4 uses usernames instead of uids so it's just a matter
> of having the same users created everywhere no matter the uid.
>
> nacho
>
> On Tue, Jul 26, 2011 at 11:50 AM, Gabriele Bulfon <gbulfon at sonicle.com> wrote:
>> Thanx for your suggestion, but I think the no_root_squashing is achieved through the "root="
>> option on zfs.
>> Infact, my zfs share output is like this:
>> - at data/sonicle  /data/sonicle/webtop   sec=sys,rw=@192.168.222.198/32,root=@192.168.222.198/32   ""
>> - at data/sonicle  /data/sonicle/www   sec=sys,rw=@192.168.222.200/32,root=@192.168.222.200/32   ""
>> found no other way to disable root_squashing but this.
>> and actually, it's not squashing root, it's squashing any non existant uid on the server.
>> any way to disable this?
>> ----------------------------------------------------------------------------------
>> Da: Alex Smith (K4RNT)
>> A: Discussion list for OpenIndiana
>> Data: 26 luglio 2011 16.40.40 CEST
>> Oggetto: Re: [OpenIndiana-discuss] NFS4 users
>> If you don't use a unifying authentication system such as LDAP or
>> NIS+, look up the root_squash and no_root_squash NFS share options.
>> I'm not sure if this will fix your problems, I've used pure NFSv4 most
>> of the time.
>> On Tue, Jul 26, 2011 at 10:29, Gabriele Bulfon
>> wrote:
>> Hi, is there any way to let NFS4 server not require the same users of the client to exist on the server??
>> I noticed that the root access on an NFS4 server, let me chmod on any user who's id exists on the server,
>> wether it is same name or not. Any chmod to a uid not existent on the server, is changed to nobody...
>> For example, I shared a filesystem, and filled it with an original filesystem, through NFS3.
>> If I mount it with vers=3, I get all the correct permissions from the client view, wether they exist or not
>> on the server.
>> If I mount the same share with vers=4, I get correct permissions only for files with uid existent on the
>> server (even if different names), all the others files get the user nobody............
>> I want to use NFS4, because I noticed that locking management is much better, and cyrus does not
>> complain. But this permission limitation is annoying.
>> Any idea?
>> Gabriele.
>> _______________________________________________
>> OpenIndiana-discuss mailing list
>> OpenIndiana-discuss at openindiana.org
>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>> --
>> " ' With the first link, the chain is forged. The first speech
>> censured, the first thought forbidden, the first freedom denied,
>> chains us all irrevocably.' Those words were uttered by Judge Aaron
>> Satie as wisdom and warning... The first time any man's freedom is
>> trodden on we?re all damaged." - Jean-Luc Picard, quoting Judge Aaron
>> Satie, Star Trek: TNG episode "The Drumhead"
>> - Alex Smith (K4RNT)
>> - Sterling, Virginia USA
>> _______________________________________________
>> OpenIndiana-discuss mailing list
>> OpenIndiana-discuss at openindiana.org
>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>>
>> _______________________________________________
>> OpenIndiana-discuss mailing list
>> OpenIndiana-discuss at openindiana.org
>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>>
>>
>
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>



-- 
" ' With the first link, the chain is forged. The first speech
censured, the first thought forbidden, the first freedom denied,
chains us all irrevocably.' Those words were uttered by Judge Aaron
Satie as wisdom and warning... The first time any man's freedom is
trodden on we’re all damaged." - Jean-Luc Picard, quoting Judge Aaron
Satie, Star Trek: TNG episode "The Drumhead"
- Alex Smith (K4RNT)
- Sterling, Virginia USA



More information about the OpenIndiana-discuss mailing list