Package: nfs-common
Version: 1:1.2.8-9.1
Severity: normal
Dear Maintainer,
I have a system that acts as an NFSv4 client. It does not have
nfs-kernel-server installed. After a recent reboot, I found that none
of the files in my NFS-mounted home directory was owned by me any more:
bjh21@wraith:~/config/platforms-ansible$ ls -l ~/.ssh
total 609
-rw-r--r-- 1 4294967294 4294967294 616 Aug 14 2015 authorized_keys
...
I found that rpc.idmapd was not running, and could not be started:
wraith:/home/bjh21/config/platforms-ansible# service nfs-idmapd status
* nfs-idmapd.service - NFSv4 ID-name mapping service
Loaded: loaded (/lib/systemd/system/nfs-idmapd.service; static; vendor preset
Active: inactive (dead)
wraith:/home/bjh21/config/platforms-ansible# service nfs-idmapd start
Failed to start nfs-idmapd.service: Unit nfs-server.service not found.
When I copied /lib/systemd/system/nfs-idmapd.service to
/etc/systemd/system and commented out the line
"BindsTo=nfs-server.service", things got better and "service nfs-idmapd
start" worked. After a few seconds, my home directory had the correct
owner:
bjh21@wraith:~/config/platforms-ansible$ ls -l ~/.ssh
total 609
-rw-r--r-- 1 bjh21 bjh21 616 Aug 14 2015 authorized_keys
I think that nfs-common should arrange that rpc.idmapd is started even on
systems without nfs-kernel-server installed, or at least that there is a
note in NEWS.Debian telling users how to turn it back on.
--
Ben Harris, University of Cambridge Information Services.
-- Package-specific info:
-- rpcinfo --
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100007 2 udp 762 ypbind
100007 1 udp 762 ypbind
100007 2 tcp 763 ypbind
100007 1 tcp 763 ypbind
-- /etc/default/nfs-common --
NEED_STATD=
STATDOPTS=
NEED_IDMAPD=yes
NEED_GSSD=yes
-- /etc/idmapd.conf --
[General]
Verbosity = 0
Pipefs-Directory = /run/rpc_pipefs
Domain = cam.ac.uk
[Mapping]
Nobody-User = nobody
Nobody-Group = nogroup
-- /etc/fstab --
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 4.6.0-1-686-pae (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)
Versions of packages nfs-common depends on:
ii adduser 3.115
ii init-system-helpers 1.36
ii libc6 2.22-13
ii libcap2 1:2.25-1
ii libcomerr2 1.43.1-1
ii libdevmapper1.02.1 2:1.02.127-1
ii libevent-2.0-5 2.0.21-stable-2+b1
ii libgssapi-krb5-2 1.14.2+dfsg-1
ii libk5crypto3 1.14.2+dfsg-1
ii libkeyutils1 1.5.9-9
ii libkrb5-3 1.14.2+dfsg-1
ii libmount1 2.28-5
ii libnfsidmap2 0.25-5
ii libtirpc1 0.2.5-1
ii libwrap0 7.6.q-25
ii lsb-base 9.20160629
ii rpcbind 0.2.3-0.5
ii ucf 3.0036
Versions of packages nfs-common recommends:
ii python 2.7.11-2
Versions of packages nfs-common suggests:
pn open-iscsi <none>
pn watchdog <none>
-- Configuration Files:
/etc/default/nfs-common changed:
NEED_STATD=
STATDOPTS=
NEED_IDMAPD=yes
NEED_GSSD=yes
-- no debconf information