New answers tagged smb
I think that you might be looking at the /Volumes/ folder with Terminal, right? But it shows the proper name of the same folder using Finder. The share$ name in /Volumes/ only affects my shell scripts, so I've ignored the difference and life is not too bad ;)
I've had to do this as well, and I have an Applescript I wrote and cobbled together from working sources to request the user's password and then use mount_smbfs to mount to a specific location (with folders already set up). This prevents stale passwords from quickly locking out the account, and also prevents passwords in the script body. I do hard-code the ...
Basically, on Mac OS X Leopard and higher, any connection discovered in the sidebar that connects via SMB will have the beige CRT with the Windows BSOD. Any AFP connection will appear differently.
Top 50 recent answers are included