DISCLAIMER: The author takes no responsibility if these instructions cause you to wipe out or destroy anything, including data stored on your Skolelinux server. In the early stage of SL, we used the normal procedure of adding nfs-shares to /etc/fstab on NFS clients. This method is fine when you have only a few shares, and a few clients, but a fully grown SL-network, with a large number of clients and a large number of shares _needs_ automount. AS we have chosen to use LDAP over NIS, the shares should be defined in LDAP. Automounting of home0 was enabled by default at 2003-09-22 14:30. Some documentation is at http://bugs.skolelinux.no/show_bug.cgi?id=309 Here is a roadmap on what to do when upgrading an existing installation. First you need to add some basic entries to your ldap tree. this is done by running /etc/init.d/slapd stop # Stopp the running server slapadd -l /etc/ldap/autofs.ldif # only do this if the server succesfully stops /etc/init.d/slapd start # start the server again then, from a client, try to run this command: . /etc/default/autofs ldapsearch -LLL -h $LDAPSERVER -b $MASTERDN \ -x '(objectClass=automount)' cn automountInformation the output should be dn: cn=/skole,ou=auto.master,ou=Automount,dc=skole,dc=skolelinux,dc=no cn: /skole automountInformation: ldap:ou=skole,ou=Automount,dc=skole,dc=skolelinux,dc=no move the old /skole out of the way mv /skole /skole.org move the the file /etc/auto.master out of the way: mv /etc/auto.master /etc/auto.master.org Make sure there is a line HOST ldap in /etc/ldap/ldap.conf then you should edit the file /etc/default/autofs to enable autofs change the line AUTOFS_ENABLED=false into AUTOFS_ENABLED=true Then start autofs with the command /etc/init.d/autofs start If things fail, please run /usr/lib/debian-edu-config/testsuite/ldap-server on the server, and on the client: /usr/lib/debian-edu-config/testsuite/ldap-client you should have debian-edu-install version 0.594 or greater for this What to do if you want to add a new share: lets say you want to add a new share /skole/tjener/home1 create a file calle autofs-home1.ldif with content: dn: cn=home1,ou=tjener,ou=skole,ou=Automount,dc=skole,dc=skolelinux,dc=no objectClass: top objectClass: automount cn: home1 automountInformation: -rw,rsize=8192,wsize=8192,intr tjener:/skole/tjener/home1 description: /skole/tjener/home1 mount point then add the content by running /etc/init.d/slapd stop && slapadd -l autofs-home1.ldif && /etc/init.d/slapd start Good Luck Finn-Arne Johansen faj@bzz.no $Id: upgrading_towards_autofs.txt,v 1.3 2004/03/04 20:26:00 klaus Exp $