On Mon, 2003-12-15 at 10:59, Peter Hardy wrote:
> On Mon, 2003-12-15 at 10:44, Phillipus Gunawan wrote:
> > How can we auto-mount a network share folder from windoewz to linux? I
> > knew that we can achive it by editing fstab file, but when the share
> > folder is set without password, what should I write?
> 
> Just give it a username and a blank password.  Here's how I mount the
> public mp3 share on our local office server.  It's a Linux box running
> samba, but I've used the same method to mount shares from Windows 2000.
> 
> //10.32.32.1/mp3        /usr/share/music        smb     
> username=bp,password=,rw,auto   0       0

If you do need valid authentication and don't want to put the username
and password in /etc/fstab, create a file somewhere (for example
/etc/winserver, with appropriate permissions) with the following
content:

username = [windows username]
password = [windows password]

Then replace the username=,password= stuff from /etc/fstab with
credentials=/etc/winserver, as such:

//10.32.32.1/mp3        /usr/share/music        smb    
credentials=/etc/winserver,rw,auto   0       0

HTH,
des.

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to