All of lore.kernel.org
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Malte Zacharias <kernel-ml-alias@asenwelt.de>
Cc: linux-nfs@vger.kernel.org
Subject: Re: NFS+krb5 ID mapping always maps to nobody
Date: Mon, 27 Sep 2010 13:12:27 -0400	[thread overview]
Message-ID: <20100927171227.GA12033@fieldses.org> (raw)
In-Reply-To: <4C9E72BB.5080000@asenwelt.de>

On Sun, Sep 26, 2010 at 12:07:55AM +0200, Malte Zacharias wrote:
> Hello,
> 
> I have been trying to configure an nfsv4 client and server for my
> network for some time now, but there is one issue I can't resolve.
> 
> I run a small (2-5 clients) network using .local as a domain suffix and
> for mDNS resolution. For "historical" reasons, my Kerberos Realm is
> TADPOLE. I setup an NFSv4 server and Client that uses Kerberos for
> authentication.
> 
> My problem is that everytime my client accesses the server, its ID is
> mapped to nobody, but I can't find any reason as to why this is
> happening. I verified this by creating a file via NFS and it always is
> created under user nobody. Test scenarios were:
>  - Identical usernames, different UIDs
>  - Identical usernames, Identical groupnames, Identical UIDs/GIDs

If you're using kerberos then it's the kerberos principal name->uid
mapping that matters here.

So:

> This is a sample command sequence for my problem:
> /mnt/nfs/heap is writeable by everyone, /mnt/nfs/nfstest01 only by
> nfstest01:
> ===============================================
> nfstest01@desktop:/$ touch /mnt/nfs/heap/test
> nfstest01@desktop:/$ touch /mnt/nfs/nfstest01/test
> touch: cannot touch `/mnt/nfs/nfstest01/test': Permission denied
> nfstest01@desktop:/$ ls -l /mnt/nfs/heap/test
> -rw-r--r-- 1 nobody nogroup 0 2010-09-26 00:02 /mnt/nfs/heap/test
> nfstest01@desktop:/$ ls -l /mnt/nfs/
> drwxr-xrwx  8 malte     users     8192 2010-09-26 00:02 heap
> drwxr-x---  2 nfstest01 nfstest01 4096 2010-09-25 22:34 nfstest01
> nfstest01@desktop:/$ id
> uid=4321(nfstest01) gid=4321(nfstest01) groups=4321(nfstest01)
> 
> ===============================================

who did you kinit as before doing this?  (What does klist say?)

--b.

  reply	other threads:[~2010-09-27 17:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-25 22:07 NFS+krb5 ID mapping always maps to nobody Malte Zacharias
2010-09-27 17:12 ` J. Bruce Fields [this message]
2010-09-27 17:50   ` Malte Zacharias

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100927171227.GA12033@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=kernel-ml-alias@asenwelt.de \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.