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@sjvls.org Ph: 559-262-4859 Fax: 559-488-2965
Keith Boettcher wrote:>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/ >Yes>I'll also have to recompile my linux kernel to support NTFS, correct? >No, you'll need smbfs, not NTFS.
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@sjvls.org Ph: 559-262-4859 Fax: 559-488-2965
> 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?No, you do not need to recompile your kernel to support NTFS. The kernel must support smbfs! Take care about the file permissions. I would do it the other way round: Put the images on the disk of the linux apache server and share the htdocs directory with samba to the NT-PC's auf the web authors. That's probably more relaiable and faster. Christian> > > Keith Boettcher > San Joaquin Valley Library System > Keith.Boettcher@sjvls.org > Ph: 559-262-4859 > Fax: 559-488-2965 > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >_(_)_ wWWWw _ @@@@ (_)@(_) vVVVv _ @@@@ (___) _(_)_ @@()@@ wWWWw (_)\ (___) _(_)_ @@()@@ Y (_)@(_) @@@@ (___) `|/ Y (_)@(_) @@@@ \|/ (_)\ / Y \| \|/ /(_) \| |/ | \ | \ |/ | / \ | / \|/ |/ \| \|/ jgs|// \\|/// \\\|//\\\|/// \|/// \\\|// \\|// \\\|// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
One correction on the smbmount. The service only supports //<server>/<share> the domain/workgroup is an option (-o workgroup=xxx). The complete command would look something like this. smbmount //server/share /mnt/point -o username=xxx,password=xxx,workgroup=xxx -- Brian ----- Original Message ----- From: "Keith Boettcher" <Keith.Boettcher@sjvls.org> To: <samba@lists.samba.org> Sent: Monday, March 25, 2002 10:34 AM Subject: [Samba] NT files to Linux/Apache web server> 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 ofjpeg> 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 ison> 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@sjvls.org > Ph: 559-262-4859 > Fax: 559-488-2965 > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >