Package: autofs
Version: 4.1.4+debian-3
Severity: important
Dear Maintainer,
*** Please consider answering these questions, where appropriate ***
* What led up to the situation?
We use autofs to mount our nfs4 home directories
* What exactly did you do (or not do) that was effective (or
ineffective)?
On our machines /home is empty - all user home directories are nfs4 mounted by
autofs
I rebooted a machine where no user had logged in since the last reboot.
* What was the outcome of this action?
/home was deleted!
* What outcome did you expect instead?
Nothing special.
It's easy to replicate. Make an empty directory. Configure autofs to mount
something there when it's accessed. Start autofs. Stop autofs. The directory
vanishes.
Script started on Wed 21 Dec 2011 10:49:19 AM CET
root@bovic:~# ls -ld /home
drwxr-xr-x 2 root root 4096 Dec 21 10:49 /home
root@bovic:~# ls -l /home
total 0
root@bovic:~# invoke-rc.d autofs start
Starting automounter: done.
root@bovic:~# ls -ld /home
drwxr-xr-x 2 root root 0 Dec 21 10:49 /home
root@bovic:~# ls -l /home
total 0
root@bovic:~# invoke-rc.d autofs stop
Stopping automounter: done.
root@bovic:~# ls -l /home
ls: cannot access /home: No such file or directory
root@bovic:~# exit
Script done on Wed 21 Dec 2011 10:50:14 AM CET
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#
#/misc /etc/auto.misc
#
# NOTE: mounts done from a hosts map will be mounted with the
# "nosuid" and "nodev" options unless the "suid" and "dev"
# options are explicitly given.
#
#/net -hosts
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
#+auto.master
/home file:/etc/auto.home
auto.home:
* -fstype=nfs4,sec=krb5 xxx.calvaedi.com:/home/&
+auto.home
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.1.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages autofs depends on:
ii libc6 2.13-23
ii ucf 3.0025+nmu2
Versions of packages autofs recommends:
ii module-init-tools 3.16-1
ii nfs-common 1:1.2.5-3jh1
autofs suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]