Lets assume you have a share on Windows AD server (thor) called books. you are using linux and want to connect to that share so you can read your favorite novel. no problem. this solution isnt' the most graceful of course, it doesn't allow you to use Active Directory to use SSO, but at least you can use your AD userID and password and not have to cheapen security just to share with 'everyone' or have no permissions on those shares.
First off, install samba with smbfs.
now create the folder you want to have the share point to, in our case /mnt/bookshare
open /etc/fstab using your favorite editor (eMacs, right?) and add a line to the bottom of your file:
//thor/books /mnt/bookshare cifs exec,credentials=/etc/cifspw 0 0
now you need to create the cifspw file in /etc. add these lines to your file if your AD userID was sp00ky:
username = sp00ky
password = long password with lots of cool characters!@*%$)
now you have to secure the file. why? well we sure don't want a world readable file out there on your machine for anyone to see.... run:
sudo chmod 600 /etc/cifspw
now, test it out:
sudo mount -a
If that doesn't work, make sure you have typed your userID and password correctly in the cifspw file. the other possibility is that you didn't type the line in your fstab file correctly. make sure you get the spacing right.
</sp00ky> |