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