linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mkdir disregards umask
@ 2018-09-12 18:17 Ryan Richter
  2018-09-18 20:38 ` J. Bruce Fields
  0 siblings, 1 reply; 3+ messages in thread
From: Ryan Richter @ 2018-09-12 18:17 UTC (permalink / raw)
  To: linux-nfs

All directories created over nfs have 777 permissions.

# umask
022
# mkdir aaaa
# ls -ld aaaa
drwxrwxrwx 2 root root 2 Sep 12 13:45 aaaa
# rmdir aaaa
# mount|grep /mnt
mazuelo:/home/sbio/ryan on /mnt type nfs (rw,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=132.204.84.95,mountvers=3,mountport=38634,mountproto=udp,local_lock=none,addr=132.204.84.95)

The same happens for regular users.

This is a very serious bug.  The server is runnig the debian stretch 4.9
kernel, and the client is running a vanilla 4.4.155.  Is there anything
in the configuration causing this, or is it a kernel bug?

Thanks,
-ryan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mkdir disregards umask
  2018-09-12 18:17 mkdir disregards umask Ryan Richter
@ 2018-09-18 20:38 ` J. Bruce Fields
  2018-09-19 20:28   ` Ryan Richter
  0 siblings, 1 reply; 3+ messages in thread
From: J. Bruce Fields @ 2018-09-18 20:38 UTC (permalink / raw)
  To: Ryan Richter; +Cc: linux-nfs

On Wed, Sep 12, 2018 at 02:17:47PM -0400, Ryan Richter wrote:
> All directories created over nfs have 777 permissions.
> 
> # umask
> 022
> # mkdir aaaa
> # ls -ld aaaa
> drwxrwxrwx 2 root root 2 Sep 12 13:45 aaaa
> # rmdir aaaa
> # mount|grep /mnt
> mazuelo:/home/sbio/ryan on /mnt type nfs (rw,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=132.204.84.95,mountvers=3,mountport=38634,mountproto=udp,local_lock=none,addr=132.204.84.95)
> 
> The same happens for regular users.
> 
> This is a very serious bug.  The server is runnig the debian stretch 4.9
> kernel, and the client is running a vanilla 4.4.155.  Is there anything
> in the configuration causing this, or is it a kernel bug?

Beats me, I can't reproduce that on a recent kernel.

Does it look the same if you run the "ls -l" on the server itself?

--b.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mkdir disregards umask
  2018-09-18 20:38 ` J. Bruce Fields
@ 2018-09-19 20:28   ` Ryan Richter
  0 siblings, 0 replies; 3+ messages in thread
From: Ryan Richter @ 2018-09-19 20:28 UTC (permalink / raw)
  To: J. Bruce Fields; +Cc: linux-nfs

On Tue, Sep 18, 2018 at 04:38:52PM -0400, J. Bruce Fields wrote:
> On Wed, Sep 12, 2018 at 02:17:47PM -0400, Ryan Richter wrote:
> > All directories created over nfs have 777 permissions.
> > 
> > # umask
> > 022
> > # mkdir aaaa
> > # ls -ld aaaa
> > drwxrwxrwx 2 root root 2 Sep 12 13:45 aaaa
> > # rmdir aaaa
> > # mount|grep /mnt
> > mazuelo:/home/sbio/ryan on /mnt type nfs (rw,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=132.204.84.95,mountvers=3,mountport=38634,mountproto=udp,local_lock=none,addr=132.204.84.95)
> > 
> > The same happens for regular users.
> > 
> > This is a very serious bug.  The server is runnig the debian stretch 4.9
> > kernel, and the client is running a vanilla 4.4.155.  Is there anything
> > in the configuration causing this, or is it a kernel bug?
> 
> Beats me, I can't reproduce that on a recent kernel.
> 
> Does it look the same if you run the "ls -l" on the server itself?

Yes, the permissions are really like that on the server and other
clients.

This only happens with nfsv3, so we're switching everything over to
nfsv4 this week, and I won't be able to do much more testing.

-ryan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-09-20  2:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-12 18:17 mkdir disregards umask Ryan Richter
2018-09-18 20:38 ` J. Bruce Fields
2018-09-19 20:28   ` Ryan Richter

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).