Wednesday, October 7, 2009

Mounting Windows Shares from Debian

Next in my Switch to Debian, I had to mount a shared windows drive. This requires smbfs:

$ sudo aptitude install smbfs

Then I create a dir for this host and share (as root because its a root-owned dir):

$ sudo mkdir /mnt/winhost
$ sudo mkdir /mnt/winhost/sharename

Then I mount the dir. Since I am not using an LDAP login, I have to specify my LDAP credentials:

$ sudo mount -t smbfs -o userame=myLDAPuser,password=myLDAPpass //winhost/sharename /mnt/winhost/sharename

Problem Solved. If I could only print!

No comments: