linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: bfields@fieldses.org (J. Bruce Fields)
To: 周周妈 <466013856@qq.com>
Cc: linux-nfs <linux-nfs@vger.kernel.org>
Subject: Re: Re: testChar and testBlock failed in pynfs
Date: Fri, 17 Mar 2023 16:22:26 -0400	[thread overview]
Message-ID: <20230317202226.GA25626@fieldses.org> (raw)
In-Reply-To: <tencent_5534F052C9A729501BB69B325CC737AB8A07@qq.com>

On Fri, Mar 17, 2023 at 04:45:19PM +0800, 周周妈 wrote:
> &gt;runs with and without root.
> 
> Do you mean in&nbsp;/etc/exports&nbsp;with and without&nbsp;no_root_squash?
> Or run as root or not root?

I used no_root_squash on the export, then ran pynfs once as root and
once as a non-root user; details in that git tree if you're interested.

--b.

> Subject:Re: testChar and testBlock failed in pynfs
> 
> 
> On Mon, Mar 13, 2023 at 06:25:58PM +0800, 周周妈 wrote:
> &gt; I think mknod for char or block device file need root permission.
> &gt; So&nbsp;&nbsp;no_root_squash is needed in&nbsp;/etc/exports in server.
> &gt; Is it right? Why not put this information in README file?
> 
> Yeah, it should probably be better documented.
> 
> For what it's worth, the scripts I used for my testing are in
> http://git.linux-nfs.org/?p=bfields/testd.git;a=tree.  I did separate
> runs with and without root.
> 
> --b.

           reply	other threads:[~2023-03-17 20:22 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <tencent_5534F052C9A729501BB69B325CC737AB8A07@qq.com>]

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=20230317202226.GA25626@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=466013856@qq.com \
    --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).