Tuesday, February 16, 2010

samba mounts working

managed to get some samba mounts working from the windows enterprise servers. first had to install the smbfs package (not there by default on ubuntu, though smbclient is). then i made the mount points and chowned them to my uid/gid. put this line in fstab:
//servername/sharename /mount/point cifs users,uid=localusername,gid=localgroup,credentials=/etc/cifspw,domain=windomain
and made the /etc/cifspw file readable by my localgroup:
username=winusername
password=winpassword
and we're in business! local user can mount, etc. i wish i didn't have to make the credentials readable by non-root, but i get suid errors that way and i guess it's alright as long as i use a local group that is perfectly unique to my local user.

No comments: