Bug 675385 - df: /var/lib/nfs/rpc_pipefs: Permission denied
Summary: df: /var/lib/nfs/rpc_pipefs: Permission denied
Status: RESOLVED FIXED
Alias: None
Product: openSUSE 11.4
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Final
Hardware: x86-64 openSUSE 11.4
: P5 - None : Normal with 1 vote (vote)
Target Milestone: ---
Assignee: Neil Brown
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-26 12:16 UTC by Per Jessen
Modified: 2011-09-06 00:12 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Per Jessen 2011-02-26 12:16:51 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-GB; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10

A user was previously able to see file system usage also for NFS-mounts, but this is currently not possible:

# ls -ld /var/lib/nfs
drwx------ 6 statd nogroup 4096 Feb 26 13:02 /var/lib/nfs

From a previous openSUSE version:

# ls -ld /var/lib/nfs
drwxr-xr-x 6 root root 20480 2011-02-26 09:52 /var/lib/nfs


Reproducible: Always
Comment 1 Per Jessen 2011-03-02 13:03:23 UTC
Actually, 'df' works fine for NFS, but just includes that error message:

df
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs                20896948   7561856  13335092  37% /
devtmpfs                240436        96    240340   1% /dev
tmpfs                   247740         4    247736   1% /dev/shm
/dev/sda2             20896948   7561856  13335092  37% /
df: `/var/lib/nfs/rpc_pipefs': Permission denied
pifs1.local.net:/var/pifs/pi01
                     2904872616  12938112 2891934504   1% /var/pifs
Comment 2 Forgotten User EFDsKzgQWr 2011-03-23 09:01:23 UTC
(In reply to comment #1)
> Actually, 'df' works fine for NFS, but just includes that error message:
> 
> df
> Filesystem           1K-blocks      Used Available Use% Mounted on
> rootfs                20896948   7561856  13335092  37% /
> devtmpfs                240436        96    240340   1% /dev
> tmpfs                   247740         4    247736   1% /dev/shm
> /dev/sda2             20896948   7561856  13335092  37% /
> df: `/var/lib/nfs/rpc_pipefs': Permission denied
> pifs1.local.net:/var/pifs/pi01
>                      2904872616  12938112 2891934504   1% /var/pifs

Same here, also 64-bit Linux.

It is caused by the permission on /var/lib/nfs.
It is set to:
# ls -ld /var/lib/nfs/
drwx------ 6 statd nogroup 4096 Mar 21 16:21 /var/lib/nfs/

Changing it to 0755 makes the message go away.

# chmod 0755 /var/lib/nfs
# ls -ld /var/lib/nfs/
drwxr-xr-x 6 statd nogroup 4096 Mar 21 16:21 /var/lib/nfs/
Comment 3 Neil Brown 2011-04-27 00:45:03 UTC
Thanks for the report.

 sudo chmod 0711 /var/lib/nfs

is sufficient to fix this. 
I have submitted an updated package to openSUSE:Factory which makes this change.
If an nfs-utils update is ever schedule for 11.4 (this bug doesn't really justify
one I think), the fix will be included.
Comment 4 Bernhard Wiedemann 2011-04-27 01:00:10 UTC
This is an autogenerated message for OBS integration:
This bug (675385) was mentioned in
https://build.opensuse.org/request/show/68471
Comment 5 Martin Schröder 2011-09-05 22:19:49 UTC
This bug has been reintroduced with the latest samba updates

> rpm -qa|fgrep samba
samba-client-3.5.7-3.5.1.x86_64
samba-client-32bit-3.5.7-3.5.1.x86_64
samba-3.5.7-3.5.1.x86_64
Comment 6 Neil Brown 2011-09-05 22:47:10 UTC
That doesn't make any sense - this bug has nothing to do with samba.

Please provide full symptoms, versions of nfs packages you have installed, and any other relevant details.
Comment 7 Martin Schröder 2011-09-05 22:53:32 UTC
(In reply to comment #6)
> That doesn't make any sense - this bug has nothing to do with samba.

Sorry. But it seems to have resurfaced in the last days.

> Please provide full symptoms, versions of nfs packages you have installed, and
> any other relevant details.

> rpm -qi nfs-client
Name        : nfs-client                   Relocations: (not relocatable)
Version     : 1.2.3                             Vendor: openSUSE
Release     : 11.16.1                       Build Date: Fr 01 Jul 2011 23:19:56 CEST
Install Date: Fr 22 Jul 2011 23:24:29 CEST      Build Host: build27
Group       : Productivity/Networking/NFS   Source RPM: nfs-utils-1.2.3-11.16.1.src.rpm
Size        : 568028                           License: GPLv2+
Signature   : RSA/8, Fr 01 Jul 2011 23:20:49 CEST, Key ID b88b2fd43dbdc284
Packager    : http://bugs.opensuse.org
URL         : http://nfs.sourceforge.net
Summary     : Support Utilities for NFS
Description :
This package contains common NFS utilities which are needed for client
and kernel based server.



Authors:
--------
    Olaf Kirch <okir@monad.swb.de>
    H.J. Lu <hjl@valinux.com>
Distribution: openSUSE 11.4
[20110906T00:52:13+0200(249/36)] ms@lucien 3500:~
> rpm -qi nfs-kernel-server
Name        : nfs-kernel-server            Relocations: (not relocatable)
Version     : 1.2.3                             Vendor: openSUSE
Release     : 11.16.1                       Build Date: Fr 01 Jul 2011 23:19:56 CEST
Install Date: So 07 Aug 2011 15:01:44 CEST      Build Host: build27
Group       : Productivity/Networking/NFS   Source RPM: nfs-utils-1.2.3-11.16.1.src.rpm
Size        : 256189                           License: GPLv2+
Signature   : RSA/8, Fr 01 Jul 2011 23:20:49 CEST, Key ID b88b2fd43dbdc284
Packager    : http://bugs.opensuse.org
URL         : http://nfs.sourceforge.net
Summary     : Support Utilities for Kernel nfsd
Description :
This package contains support for the kernel based NFS server. You can
tune the number of server threads via the sysconfig variable
USE_KERNEL_NFSD_NUMBER. For quota over NFS support, install the quota
package.



Authors:
--------
    Olaf Kirch <okir@monad.swb.de>
    H.J. Lu <hjl@valinux.com>
Distribution: openSUSE 11.4
> LANG=C df -h
Filesystem            Size  Used Avail Use% Mounted on
rootfs                 50G  4.2G   43G   9% /
devtmpfs              3.8G  244K  3.8G   1% /dev
tmpfs                 3.8G  4.0K  3.8G   1% /dev/shm
/dev/mapper/system-root
                       50G  4.2G   43G   9% /
/dev/sda1             250M   81M  156M  35% /boot
/dev/mapper/system-home
                       32G  2.7G   29G   9% /home
/dev/mapper/system-space
                       99G  4.6G   93G   5% /space
/dev/mapper/raid-raid
                      1.5T  1.4T  120G  93% /raid/raid
/dev/mapper/raid-nelson--boot
                       43M   38M  3.3M  92% /raid/nelson/boot
/dev/mapper/raid-nelson--home
                      8.0G  7.9G  166M  98% /raid/nelson/home
/dev/mapper/raid-nelson--root
                       12G   12G  569M  96% /raid/nelson/root
/dev/mapper/raid-nelson--space
                       90G   90G   43M 100% /raid/nelson/space
/dev/mapper/raid-backup
                      173G  130G   42G  76% /raid/backup
df: `/var/lib/nfs/rpc_pipefs': Permission denied
> rpm -qf /var/lib/nfs/rpc_pipefs
nfs-client-1.2.3-11.16.1.x86_64
Comment 8 Neil Brown 2011-09-06 00:12:03 UTC
Thanks.
It was actually a recent nfs-utils update that broke this.
I forgot to add this fix when I made an nfs-utils update for 11.4 a couple of months back.  Oops.

I've taken more definite steps to make sure I get it right if there is a next time.
My apologies.

Just "sudo chmod 711 /var/lib/nfs"
and it should be OK.

NeilBrown