Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Subdirectories on NFS server missing 'executable' permission
Date: Sat, 26 Jan 2013 23:05:27
Message-Id: 20130127010430.03803eaa@khamul.example.com
In Reply to: [gentoo-user] Subdirectories on NFS server missing 'executable' permission by Ralph Seichter
1 On Sat, 26 Jan 2013 17:13:47 +0100
2 Ralph Seichter <gentoo-user@××××××××.de> wrote:
3
4 > Hi list members,
5 >
6 > I set up Gentoo as an NFS server, and I am experiencing problems with
7 > one of my NFS clients. When this specific client creates new
8 > directories within the NFS-exported directory, the permissions are
9 > 0644 instead of 0755 ('executable' is missing). The client does not
10 > allow passing any arguments when mounting a remote directory, so I
11 > wonder if this can be fixed on the server side? My exports
12 > configuration looks like this:
13 >
14 > # /etc/exports
15 > /mnt/foo
16 > 192.168.235.0/24(rw,async,all_squash,no_subtree_check,anonuid=1003,anongid=1003,insecure) /mnt/bar
17 > 192.168.235.0/24(rw,sync,no_root_squash,no_subtree_check,anonuid=1003,anongid=1003,insecure)
18 >
19 > Both /mnt/foo and /mnt/bar were created like this:
20 >
21 > mkdir /mnt/foo && chown root:root /mnt/foo && chmod 1777 /mnt/foo
22 >
23 > It does not matter whether the client creates a new directory
24 > in /mnt/foo or /mnt/bar, the executable bit is always missing.
25 >
26 > Your ideas are appreciated. Thanks!
27
28 What sort of client is this, and what umask is it using?
29
30 That's regular shell umask, not some fancy thing related to fs mounts.
31
32
33 --
34 Alan McKinnon
35 alan.mckinnon@×××××.com

Replies

Subject Author
Re: [gentoo-user] Subdirectories on NFS server missing 'executable' permission Ralph Seichter <gentoo-user@××××××××.de>