rajeev karamchedu

Technology and Professional Services Director, currently part of a very exciting and talented team of technology/data management solution provider, IronBrick

14 responses to “Autofs goodness in Apple’s Leopard (10.5) – Part II”

  1. Anthony

    Hello Rajeev,

    Sorry, if you wind up getting this twice as I wasn’t sure if it had been sent correctly.

    I was wondering, given your extensive expertise and knowledge with Autofs on Leopard, if it’s possible you could help clarify something for me ?

    It’s a simple question, really.

    How does one get rid of sub-directories created in /net ?

    Somehow, I’ve accidentally managed to create these sub-directories…

    /net/localhost
    /net/broadcasthost

    ….after running the following (on Mac OS X 10.5.8 (client version)) as I was trying to create a new user….

    ‘dscl . -create /Users/aUserShortName NFSHomeDirectory /Local/Users/aUserShortName’

    I simply wished to created a standard user for for this Mac in the out of the box /Users directory. i.e.- In the local directory services database with no intended current or future relationship with servers whatsoever, period. When the user’s home directory didn’t appear in /Users I ran this (perhaps causing more damage)…

    ‘dscl . -create /Users/aUserShortName HomeDirectory /Local/Users/aUserShortName’

    After running the above commands was the point which I discovered the undesired ‘/net/localhost’ and ‘/net/broadcasthost’ directories.

    As a site note, I probably should of ran this instead given that it’s just a standard end user Mac OS X (Client) type machine (not used in a server related environment)…

    ‘dscl . -create /Users/aUserShortName NFSHomeDirectory /Users/aUserShortName’

    I see from one of your articles that there’s a special map/ -null option (‘/users -null’) to disable entries after it the auto_master file. However, upon examining my backup volumes they don’t have that set (and these don’t have the annoying ‘/net’ sub-directories). So, some configuration must of been unintentionally turned on elsewhere.

    As well, I’ve read through Apple’s white paper on this (http://images.apple.com/business/docs/Autofs.pdf) and numerous other articles/docs/posts related to Leopard’s Directory Services. While there’s considerable info on how to enable and configure these services there’s little on how to turn them off and make ‘/net/*’ directories completely go away once created.

    Thanks,

    -A

  2. jeckyll

    Thanks for the great Tutorial!
    I wanna map a smb share of a server here at work to a directory in my user directory. Is there a way to do this? Thanks

  3. Mark Myers

    I forgot: you will of course probably need to supply username and password in the URL for the RecordName attribute, so it should be “url=smb://username:password@server.dns.name.or.ip/path_to_share.”

  4. Mark Myers

    I find there is a more Mac-style way on Leopard to create SMB or AFP automounts than editing config files in /etc. What I do is create a new record using Workgroup Manager in the Mounts node of the local directory (/Local/Default). You have to create these attributes: RecordName, VFSLinkDir, and VFSType. For RecordName, use the URL to your SMB share, i.e. “url=smb://server.dns.name.or.ip/path_to_share”, for the value. VFSLinkDir should be the local path to the mount point, i.e. “/Network/sharename.” VFSType should be “smb” or “afp” as needed. This creates an entry in the local directory (dslocal) that is (in my opinion) more easily managed than files in /etc.

  5. Shingi

    Hi Guys.
    I am seeing an interesting behavior with my Mac os leopard setup. When i connect resources on my nfs mount through finder i get permission errors because of group permisions, files i own work just fine.

    What is strange is that from the terminal i can access and edit or delete these same resoures just fine. But when i try and edit a file in finder it just wont work.

    Any ideas? I also have the machine hooked up to ldap.

  6. freedumb2000

    This sounds great but reading this http://www.stress-free.co.nz/automounting_samba_shares_in_leopard
    made me a little uneasy.
    Quote: “After a few weeks of use I have found the automount technique described here is a little unreliable not only from the perspective of keeping the mount point active but also for maintaining the correct file permissions.”

    Is automounting SMB sharees really adviseable in a production environment?

  7. JB

    When setting up the indirect map for cifs (the /smb auto_smb), how do I get that directory to show up in the finder off the root of the drive? As soon as automount runs, the directory vanishes out of finder and the only way I have to access the share is to drill through the network/servers/server/share that I used to connect the automount. the only other way to get in is to go to the command line and go to /smb/.

  8. Adam

    Can Leopard’s autofs be setup to work with macFUSE and sshfs mounts?

  9. mo

    I am confused, what does “url” signify in the afp/-fstab entry
    “servername/path mount_point url net,automounted,url==afp://username:password@server/path 0 0″. If you could provide an actual sample/example for that section it would be very very helpful.

  10. the occasional blog | Autofs goodness in Apple’s Leopard (10.5) - Part I

    [...] the next part of this article, I will cover the use of the “net” option and using automount for AFP [...]

Leave a Reply

Elsewhere..

Gas Money

Lens Flare

IMG_3378IMG_3346IMG_3257IMG_3251IMG_3247IMG_3238IMG_3265IMG_3245