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

I need to be able mount a SMB share from terminal, for MAC OS versions (10.7). Is there a way to use mount_smbfs with keychain so I don't get prompt the username/password or have to add it to the command? I'm quite new to this so any help would be appreciated.

share|improve this question
It should ask you if you want to save credentials when you mount it. You could write a script that auto-mounts on boot if you want to, I actually have that on mine, I could post it. But if you need to stay in terminal, that won't be useful – Raystafarian Mar 30 '12 at 11:21
Thanks @Raystafarian. The reason I need it to stay in terminal is because I am writing a Fabric script for deployment and would like to make it generic for each computer to use be able to use the credentials stored in the keychain rather than add it to the command. Hope that make sense – Celine Apr 1 '12 at 23:52

Your Answer


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

Browse other questions tagged or ask your own question.