Monday, November 16, 2009

How to mount a windows fileshare

Assuming the folder 'library' is being shared on the ntserv1 machine, here's how to do it from the command line:

mount -t cifs //ntserv1/library -o username=pcr,password=Purisma1 /library

Be sure to create the /library directory on your unix box and set the permissions to allow everyone to access it.

The /etc/fstab entry will look like this:

//ntserv1/Library /library cifs password=Purisma1,username=pcr 0 0