Click to See Complete Forum and Search --> : How do I: Windows share as dir on FTP Site


vabiro
01-06-2003, 04:20 PM
Hi,

I'm a bit new to the world of Linux admin, so Samba has been a god send for my migration away from Windows.

However, I still have a need to have access to a directory on my windows web server through FTP hosted on a RH8 box.

I suppose it would be similar to mapping the share so it looks like a directory under /var/ftp/.

Even being able to have an account thats default directory is routed to the share on the Win2k box would be helpful.

Thanks in advance.
Victor

Hayl
01-06-2003, 04:32 PM
you need to mount the windows share in some directory in your ftp directories or mount it somewhere else and put in a symlink to it in your ftp directories (assuming you allow symlinks - which i think is probably not a good idea anyway).

for example, create the following directory :

/var/ftp/windows_share

and then in /etc/fstab add in:

//windowsbox/share /var/ftp/windows_share smbfs credentials=/home/username/.smbpassword,uid=username 0 0


the .smbpassword file has 2 lines in it:

username=yourusername
password=yourpassword