Re: Mount CIFS share as user
On (01/03/07 10:26), Greg Vickers wrote:
> I want to mount a Windows share using CIFS and an entry in my fstab like so:
> //server/share /media/mnt cifs rw,user,noauto,workgroup=one,username=two
Here's what I do:
set up .smb_pass in each user's home dir
cat .smb_pass
username=<username>
password=<password>
use the cifs module (I usually use modconf but $ sudo modprobe -i cifs
should do it).
and put the following in /etc/fstab (having created the mount point):
//server/sharename /mountpoint credentials=/home/cma/.smb_pass,uid=<user>,gid=<group>,file_mode=0660,dir_mode=0770 0 0
Regards
Clive
--
www.clivemenzies.co.uk ...
...strategies for business
Reply to: