Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

 
discard

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

Browse other questions tagged or ask your own question.