OSX

  • On the machine that you want to automount directories on, execute:
    dscl -change Local/Default/Users/johnd NFSHomeDirectory /Users/johnd /home/johnd

    dscl will change the home directory of johnd from the normal /Users/johnd to /home/johnd.

    This step readies for the use of the automounter.


    Edit /etc/auto_home to look like:
    ## Automounter map for /home
    #+auto_home
    # Use directory service

    johnd server1.local:/Users/johnd


    Useful DSCL commands for configuring Users:

    Create a new entry in the local (/) domain under the category /users.

    dscl / -create /Users/toddharris

     

    Create and set the shell property to bash.

     


    dscl / -create /Users/toddharris UserShell /bin/bash

     

    Create and set the user’s full name.

     


    dscl / -create /Users/toddharris RealName "Dr. Todd Harris"

     

    Create and set the user’s ID.

     


    dscl / -create /Users/toddharris UniqueID 503

     

    Create and set the user’s group ID property.

     


    dscl / -create /Users/toddharris PrimaryGroupID 1000

     

    Create and set the user home directory.

     


    dscl / -create /Users/toddharris NFSHomeDirectory /Local/Users/toddharris

     

    Set the password.

     


    dscl / -passwd /Users/toddharris PASSWORD

     

    perform administrative functions

     


    dscl / -append /Groups/admin GroupMembership toddharris

     

     

     

     


  • By default Snow Leopard has LPD disabled. To turn it on for sharing printers via LPR/LPD do the following in Terminal:

    cupsctl 'BrowseLocalProtocols="cups dnssd lpd"

    (Found in CUPS Online Help, under Getting Started > Printer Sharing)
  • Some  links for setting up OSX with a Linux Directory Server:

    http://deepport.net/archives/setting-up-a-linux-server-for-os-x-clients/#linux-setup-and-configuration

    Automaps:
    http://lowendmac.com/ed/winston/09kw/automount-openldap.html
  • This Apple knowledge-base article explains how to set a default umask if something other than 'umask 022' (the default) is required. In a workgroup/NFS environment I usually like to use umask 002 so that the users group has access to user-created files.

    http://support.apple.com/kb/HT2202