Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Feb 2013 18:23:09 -0500 (EST)
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        Janusz Bulik <januszbulik@googlemail.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: NFSv4 + Kerberos permission denied
Message-ID:  <1847152797.3199113.1361488989058.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <CAMFg4WvJrzT7KB-4W_JnHH9CcPiK%2BcWHp6KJPEZg=-K2Cb-QzQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Janusz Bulik wrote:
> Hello,
> I've got a little problem with NFSv4 + Kerberos. I can do a mount with
> Kerberos with a valid ticket, but read-only.
> After the mount -vvv -t nfs -o nfsv4,sec=krb5 nfsserver:/ /mount_test/
> I can see:
> 
> #klist:
> Feb 6 07:22:47 Feb 6 17:22:43 nfs/nfsserver@my.domain
> 
> #/var/heimdal/kdc.log:
> 2013-02-06T07:28:26 TGS-REQ clientnfs@my.domain from IPv4:192.168.0.23
> for nfs/nfsserver@my.domain
> 
> tcpdump:
> 14:59:36.140272 IP nfsclient.61011 > 192.168.0.21.kerberos-sec:
> 14:59:36.142301 IP 192.168.0.21.kerberos-sec > nfsclient.61011:
> 
> I got "Permission denied" message when I try to mkdir or rm. As a root
> mount and as a user mount (sysctl vfs.usermounts=1).
> With -sec=sys it works read-write, but with -sec=krb5 read-only..
> 
> my /etc/exports:
> V4: /export_test -sec=krb5:krb5i:krb5p -network 192.168.0.0 -mask
> 255.255.255.0
> /export_test -sec=krb5:krb5i:krb5p -network 192.168.0.0 -mask
> 255.255.255.0 -maproot=root -alldirs
> 
> tried with V4: / .... as well.
> Added all the principals needed.
> Tried also with full qualified domain names.
> SSH works fine with Kerberos
> 
> 
> Do I need rpcsec_gss.patch? (according to
> http://code.google.com/p/macnfsv4/wiki/FreeBSD8KerberizedNFSSetup)
> or can I make it work somehow else?
> 
> I used FreeBSD-9.1-RELEASE-i386-disc1
> and
> FreeBSD-10.0-CURRENT-i386-20130202-r246254-release
> 
That sounds just like the problem isolated/fixed by Elias. I can't
remember if I already sent you email on this, but you should try:

Increasing the size of buf[128] to buf[1024] in both:
- usr.sbin/gssd/gssd.c
- kerberos5/lib/libgssapi_krb5/pname_to_uid.c

and then rebuild/reinstall world.

rick

> --
> Greets
> Janusz
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to
> "freebsd-stable-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1847152797.3199113.1361488989058.JavaMail.root>