Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I mount a SMB share using the guest user?

I know how to do it with an AFP share: mount volume "afp://;AUTH=NO%20USER%20AUTHENT@NAS_AB01(AFP)._afpovertcp._tcp.local/Images"

How do you do it with an SMB share?

share|improve this question
What version of OS X? – slhck Dec 14 '12 at 6:22
man mount_smbfs on OS X 10.8 has the following example: mount -t smbfs //guest:@myserver/PUBLIC /smb/public. Does this work? You could run this from AppleScript using do shell script – Daniel Beck Apr 29 '13 at 7:22
mount volume "smb://server/share" uses the cached user credentials, if they exist, otherwise opens the credentials dialog. mount volume "smb://guest:@server/share" always opens the credentials dialog. – Daniel Beck Apr 29 '13 at 7:34
up vote 0 down vote accepted

You can provide a password after the username separated by a colon :.

With password:

mount volume "smb://username:password@server/share"

Without password:

mount volume "smb://username:@server/share"
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.