Here's a way of mounting Samba shares in Snow Leopard that does not depend on the login process. This method auto-mounts a share when it is accessed. You need to have an administrator password to edit and create the needed files.
First, edit /etc/auto_master (as root) and add a line:
/- auto_smbI use the free version of TextWrangler for this; it will prompt you for your admin password. This tells autofs to look in the file /etc/auto_smb for the mount info. The /- means the the full mount path will be specified in auto_smb.
sudo touch /etc/auto_smbNow edit this new file to put the share info into it.
Each row you add has the following format. Note that there is a space between smbfs and the colon.
mountpath -fstype=smbfs ://user:password@server/sharedirectorymountpath is the path on the local file system where the share will be mounted. user:password is the username and password needed to access the Samba share. server is the Samba server name or address. sharedirectory is the directory on the Samba server that will be mounted. For example, I use these two lines:
/users/gordon/nas/family -fstype=smbfs ://gordon:XXXX@mynas/buchanan /users/marcy/nas/family -fstype=smbfs ://gordon:XXXX@mynas/buchananThis will create shares under the nas directory in the home directories for users gordon and marcy. The nas directories must be manually created by you; the automount process will automatically create the family directory.
sudo automount -vcTo access the share, just go to the mountpath; in my example, that's the directory /users/gordon/nas/family. The share will automatically be mounted.
Mac OS X Hints
http://hints.macworld.com/article.php?story=20100203124656707