Automounts

topic posted Wed, September 7, 2005 - 9:43 PM by  PixelSlut //...
I was wondering if there was a way to automount a network share based on the user that logs in? Ive configured some dynamic mounts at work (using netinfo) for a couple network shares on various computers there. However I also regularly mount 1-3 of the drives/shares on my home machine periodicly throughout the day for various things. After awhile this gets old. Id like to set up an automount on login to my account but obviously i dont want someone else using the box to have access to my personal drives. None of my coworkers really need to stumble across all that midget porn...

Any thoughts?

Also, as an aside... when using a XP box is there a way to map a network (or generally connect to a network place using smb) when its not in the same subnet/domain? For some reason it dosent seem to work. Ive tried to set up a music share for the girl friend since her machine as an unfathombly small hard drive. Ive got her using ftp now but im thinking smb would be better.

And next time ill try not to use the word mount so much.
  • one hack might me to make an alias to the volume and put that in their startup items
      • Thanx... but i dont like that method its not as clean as netinfo. If youre interested in this method:

        - Open Applications/Utilities/Netinfo Manager
        - Click on Mounts in the second column/pane

        (Authenticate if necessary)

        - Go to Directory>New Subdirectoy; Click in the Value field of the new sub directory. Enter the name of the share, ex: SERVERNAME:/SHARENAME

        - Click on another item in the second window, you should be prompted to save. Do so and click on mounts, then the new entry you made.

        - Got to Directory>New Property. Repeat 3 times.

        - Change the new_property entires to these (property, value):
        ---- vfstype, url
        ---- dir, /Network/Servers
        ---- opts, net

        - after you have those entered click on the opts entry. Go to Directory, Insert Value enter: url==afp://username:password@SERVERNAME/SHARENAME

        When rompted update the directory. and close. reboot an voila! Dynamic mounted network share. To access it you can navigate to it through the finder by going to /Network/SERVERNAME/SHARENAME/

        Also, if you have windows shares running on your local network you want access to, you can do the same thing. However instead of afp:// (AppleFileServer) use smb:// (SAMBA - windows an *nix sharing). You can also use NFS mounts but i wont get into all that.

Recent topics in "os x"

Topic Author Replies Last Post
Need help with powerbook pismo restart issue??? Little 1 January 27, 2008
10.5 screen shots Christopher 0 December 24, 2006
Free mac backup software Christopher 0 December 24, 2006
Consequences of Intel move? riverlife 5 December 24, 2006