Travel

Categories

mount network share and add password in keychain in mac

mount -t smbfs //aoe@samba-srv.ie.cuhk.edu.hk/aoeshare /Volumes/aoeshare

security add-internet-password -a aoe -D “Network Password” -r “smb ” -l “samba-srv.ie.cuhk.edu.hk” -s “samba-srv.ie.cuhk.edu.hk/aoeshare” -w ‘eoa!@#ao’

Add the password to keychain

security add-internet-password -a aoe -D “Network Password” -r “smb ” -l “samba-srv.ie.cuhk.edu.hk” -s “samba-srv.ie.cuhk.edu.hk/aoeshare” -w ‘password’  -T “/System/Library/CoreServices/NetAuthAgent.app/Contents/MacOS/NetAuthAgent”

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>