[Samba] NT files to Linux/Apache web server

Rashkae rashkae at wealthmap.ca
Mon Mar 25 10:23:04 GMT 2002


Your smbmount command is correct. Though you may want to add some extra
spiffy options to make it work nice...

smbmount //ntdomain/nterver/share /home/htdocs/images -o
username=nter,password=password,uid=local_user,fmask=444,dmask=555

There's some suggestions in the smbmount man page I think that suggest
ways you can put the password in special file in case your mount
script has to be publicly readable. (In either way, the password is
going to be in plain text somewhere on your Linux WebServer, you may
want to create a specially restricted account on the NT box for use.)
The fmask and dmask make the files and directories from the share
world readable. Adjust as required.

Note: the images directory must already exist in your /home/hdtocs
directory

And no, you do *not* need ntfs file system support in kernel.
Instead, you need smbfs.  It doesn't matter *what* filesystem is on
the other end of the smb share, be it NTFS, VFAT or Linux EXT2 or
whatever any of the other unices are using.


On Mon, 25 Mar 2002, Keith Boettcher wrote:

We have a Linux/Apache web server, let's call it home.org

Another machine on the same ethernet is Windows NT server with lots of jpeg
images

We want to present these images via our web server.  Our web authors
envision providing the images as files within subdirectories on the
home.org server

Envision a URL such as home.org/images/buildings/church1.jpg

I think I want to use samba to mount the images file directory (which is on
the NT Server) as a filesystem on the home.org server

Am I correct in using something like this?

	smbmount //NTDOMAIN/NTSERVER/share  /home/htdocs/images/

I'll also have to recompile my linux kernel to support NTFS, correct?
 Currently my /etc/filesystems does not include a line for ntfs, but it
should if this is to work, correct?


Keith Boettcher
San Joaquin Valley Library System
Keith.Boettcher at sjvls.org
Ph:   559-262-4859
Fax: 559-488-2965








More information about the samba mailing list