Tuesday, March 27, 2007

the always tricky SMB mount syntax

I always forget, so here it is:
mount -t smbfs /// / -o username=/,password=

for example:
mount -t smbfs //server/E$ /mnt/test -o username=gagazote/mydomain,password=hackth1s

ah well..I'm not that bright anyway.

Update, 9/12/07:
Since the smbfs switch is being deprecated, probably a better way to do this in the future is to use the "-t cifs" switch described here:

No comments:

Feel free to drop me a line or ask me a question.