linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jaap <jwinius@umrk.nl>
To: linux-nfs@vger.kernel.org
Subject: Re: NFSv4 with Kerberos and no_root_squash
Date: Wed, 28 May 2014 15:07:54 +0000 (UTC)	[thread overview]
Message-ID: <lm4u4a$tbn$1@ger.gmane.org> (raw)
In-Reply-To: 20140528140544.GB22210@fieldses.org

On Wed, 28 May 2014 10:05:44 -0400, J. Bruce Fields wrote:

> Right, I'd expect that to be mapped to nobody.

Same here. But if I export a directory that is owned by nobody.nogroup, I 
still can't write to it as root.
 
> You can set up a one-off mapping for a given machine credential in
> idmapd.conf.  (If you're using rpc.svcgssd.  ...)

I am using rpc.svcgssd, but even if I add the following to idmapd.conf on 
both the server and the client (although I think it's only necessary on 
the server):

  [Static]
  root/<hostname>@<realm> = root

... I still get the same result when I try to write to one of the exports 
as root: Permission denied.

> ( ... If you're using gss-proxy I think there's similar
> configuration in /etc/krb5.conf.)

That would be the "auth_to_local" tag in the [Realms] section. The gss-
proxy project seems to be a RedHat effort to replace rpc.svcgssd. Perhaps 
not such a bad idea. However, I'm using Debian.

Thanks,

Jaap


      reply	other threads:[~2014-05-28 15:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-24 16:20 NFSv4 with Kerberos and no_root_squash Jaap
2014-05-27 20:54 ` J. Bruce Fields
2014-05-27 23:21   ` Jaap
2014-05-28 14:05     ` J. Bruce Fields
2014-05-28 15:07       ` Jaap [this message]

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='lm4u4a$tbn$1@ger.gmane.org' \
    --to=jwinius@umrk.nl \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).