nfsv4 acl inheritance does not work remotely
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nfs-utils (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Steps to reproduce:
Directory mounted on server (m1):
/dev/cciss/c0d1p1 on /raid type reiserfs (rw,noatime,
The same directory mounted on client (m4) via nfsv4:
m1:/projects on /export/projects type nfs4 (rw,noatime,
Create directory remotely (at client) and set nfs4 acl to inherit permissions:
vk@m4:/projects$ mkdir aaa
vk@m4:/projects$ chmod g+rwxs aaa
vk@m4:/projects$ nfs4_setfacl -a A:fd:OWNER@
vk@m4:/projects$ nfs4_setfacl -a A:fd:GROUP@
vk@m4:/projects$ nfs4_getfacl aaa
A::OWNER@
A::GROUP@:rwaDxtcy
A::EVERYONE@:tcy
A:fdi:OWNER@
A:fdi:GROUP@
A:fdi:EVERYONE@:tcy
Now create subdirectory and file remotely (at client):
vk@m4:/projects$ mkdir aaa/dir_ext
vk@m4:/projects$ touch aaa/file_ext
The same locally (at server):
vk@m1:/projects$ mkdir aaa/dir_int
vk@m1:/projects$ touch aaa/file_int
Now check permissions of new directories and folders:
remotely (from client):
vk@m4:/projects$ ls -al aaa
total 1
drwxrws--- 4 vk Users 144 2011-09-19 12:13 .
drwxrwsr-x 27 user Users 760 2011-09-19 12:11 ..
drwxr-s--- 2 vk Users 48 2011-09-19 12:13 dir_ext
drwxrws--- 2 vk Users 48 2011-09-19 12:13 dir_int
-rw-r----- 1 vk Users 0 2011-09-19 12:13 file_ext
-rw-rw---- 1 vk Users 0 2011-09-19 12:13 file_int
and locally (from server):
vk@m1:/projects$ ls -al aaa
total 1
drwxrws---+ 4 vk Users 144 2011-09-19 12:13 .
drwxrwsr-x 27 user Users 760 2011-09-19 12:11 ..
drwxr-s---+ 2 vk Users 48 2011-09-19 12:13 dir_ext
drwxrws---+ 2 vk Users 48 2011-09-19 12:13 dir_int
-rw-r-----+ 1 vk Users 0 2011-09-19 12:13 file_ext
-rw-rw----+ 1 vk Users 0 2011-09-19 12:13 file_int
There IS permissions' inheritance for locally created directory and file, but strangely enough there is NO permissions' inheritance for remotely created directory and file (note, that initial directory and acl were created and set remotely from client).
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: nfs-kernel-server 1:1.2.0-4ubuntu4.1
ProcVersionSign
Uname: Linux 2.6.32-
Architecture: i386
Date: Mon Sep 19 12:55:00 2011
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100427.1)
ProcEnviron:
LANG=ru_RU.UTF-8
SHELL=/bin/bash
SourcePackage: nfs-utils
description: | updated |
description: | updated |
Absolutely the same if server's filesystem is xfs instead of reiserfs, so the problem is with nfs, but not with server's filesystem.