Site Navigation
What's This All About?
Linux Server Setup
   Initial LDAP Setup
   NFS Setup
   SAMBA Setup
   Additional LDAP Setup
Linux Client Setup
   LDAP Setup
   NFS Setup
Mac OS X Client Setup
   LDAP Setup
   NFS Setup
Windows 2000 Client/Domain Setup
Adding Users and Final Use

Steps for setting up the NFS exports on your server:

So, now you have finished the basic LDAP server setup, and we need to set up the NSF server for the home directories.
  • Install the Debian nsf-kernel-server package using dselect or any other methold you choose.

  • Configure your /etc/exports file to set up the nfs export
    • read man exports for more information on the options for this file
    • add the line for your export, using information you need, such as:

      Code:

      /share/home 144.38.207.177(rw,no\_root\_squash)

      This shares the directory /share/home with the host at IP 144.38.207.137. That host may Read and Write the disk, and root on the remote system acts like root on the server system.

      Specify IPs to protect against DNS failure and DNS spoofing.

    • You can also specify ranges of IP addresses to export to, like:

      Code:

      144.38.205.0/24(rw,no_root_squash)

      This example would allow any machine with an ip address in the range of 144.38.205.1 through 144.28.205.255 to mount the nfs volume. You can fine tune the /etc/exports file to allow only the specific machines that need to have access.

    • Here is a sample /etc/exports file

  • edit /etc/init.d/nfs-kernel-server
    • Change:

      Code:

      RPCMOUNTDOPTS="--no-tcp --no-nfs-version 3"

    • Run:

      Code:

      /etc/init.d/nfs-kernel-server restart

      to restart the nfs server.
    • Here is a sample /etc/init.d/nfs-kernel-server file


If you got through all of those steps correctly, then the NFS server should be up and ready to go. To test it, go back to our Linux test client machine and follow the instructions under the Linux Client: NFS setup section to make the client work with the server.

Now, to add a home directory for the test user that we added before (in the basic LDAP setup), you will have to manually copy over the default home directory, located at /etc/skel (at least for Debian) to /home/user_name (bbonzai) and manually chmod permissions to uid:gid 11000 (assuming you used the sample ldif file I provided in the initial LDAP setup page). Then, when the client machine logs in as the ldap user (bbonzai) the automounter should mount /home/bbonzai and pull in his user profile and home directory.

Once we are done with NFS, it's time to set up SAMBA.