If /home is mounted over NFS via an automount map, root is unlikely to
be able to create directories in /home.  While root can be configured
to be allowed to write in individual home directories, it can't
automatically create an automount map, which is very common in larger
NFS setups.  Thus, it's very unfortunate that the debian/preinst script
fails - if it has to create a /home/ANONYMOUS directory, could it
possibly be set to just warn if it detects autofs?  Something along the
lines of:

if ! [ -d /home/ANONYMOUS ]
then
        if [ `mount | grep /home | grep autofs | wc -l` -eq 0 ]
        then
                mkdir /home/ANONYMOUS
        else
                echo "Warning: autofs for /home enabled, please see 
/usr/share/doc/README.Debian"
        fi
fi
if [ -d /home/ANONYMOUS ]
then
        chmod 0777 /home/ANONYMOUS
        chown nobody:nogroup /home/ANONYMOUS
fi

-ukh

Attachment: signature.asc
Description: Digital signature

Reply via email to