[Bug 1605230] Re: sub-directories initially only accessible by root
Andreas Pinhammer
andreas.pinhammer at gmx.de
Fri Aug 5 20:24:50 UTC 2016
I've observed the same behaviour after upgrading my client from 14.04 to
16.04: root export of my nfs share is still accessible for user. But
subfolder exports are not accessible anymore, although they are exported
with crossmnt enabled. If I login as root user on client, all subfolders
can be accessed without any problem.
On 14.04, everything worked just fine. Server configuration is
unchanged.
fstab same for both client versions (14.04, 16.04):
nasnas:/ /media/nasnas nfs4 _netdev,auto,users 0 0
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to nfs-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1605230
Title:
sub-directories initially only accessible by root
Status in nfs-utils package in Ubuntu:
Confirmed
Bug description:
sub-directories initially only accessible by root
Client: (K)Ubuntu 16.04 LTS - new install (not upgrade) fully up-to-date
Server: Ubuntu 14.04 LTS - fully up-to-date
Client Package: nfs-common 1:1.2.8-9ubuntu12
No access issues using Kubuntu 15.04 client in the past or currently.
Server configuration unchanged.
Attempting to access all subfolders of NFS mount fails for user.
Primary folder is listable, subfolders are not, files in first level
folder are accessable. If a subfolder is accessed by root user, it
(and all nested subfolders and files) becomes accessible by users.
After an unknown amount of time, subfolders revert back to
inaccessible by user unless subfolder is kept "active" - like having
it open in Dolphin. Permissions appear correct.
:~$ ll /shared
total 148
drwxrwsr-x 1 nobody shared 274 Jul 18 14:03 ./
drwxr-xr-x 1 root root 262 Jul 16 12:41 ../
drwxrwsr-x 1 nobody shared 120 Jul 6 11:49 Audio/
drwxrwsr-x 1 nobody shared 18 Jul 6 11:49 Backups/
-rw------- 1 nobody shared 35 Jul 7 13:42 .directory
drwxrwsr-x 1 nobody shared 612 Jul 8 09:12 Documents/
~$ ll /shared/Audio/
ls: cannot access '/shared/Audio/': Operation not permitted
~$ sudo ls /shared/Audio/
[sudo] password:
Audio Books Comedy Holiday Ringtones
:~$ ll /shared/Audio/
total 0
drwxrwsr-x 1 nobody shared 120 Jul 6 11:49 ./
drwxrwsr-x 1 nobody shared 274 Jul 18 14:03 ../
drwxrwsr-x 1 nobody shared 390 Jun 12 2011 Audio Books/
drwxrwsr-x 1 nobody shared 4882 May 22 14:49 Comedy/
drwxrwsr-x 1 nobody shared 166 Nov 22 2013 Holiday/
drwxrwsr-x 1 nobody shared 1290 Jul 7 2015 Ringtones/
fstab same for both client versions (15.04, 16.04):
server:/ /shared nfs4 auto,bg,soft,users,rsize=65536,wsize=65536,noatime,x-systemd.automount 0 0
server:/ /shared nfs4 auto,bg,soft,users,rsize=65536,wsize=65536,noatime,x-systemd.automount 0 0
export line from server:
/exports 192.168.1.0/24(rw,fsid=0,crossmnt,no_subtree_check,async,secure,nohide,all_squash,anonuid=65534,anongid=560)
client-side user groups: adm cdrom sudo dip backup plugdev users
lpadmin sambashare wireshark shared
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1605230/+subscriptions
More information about the foundations-bugs
mailing list