Koozali.org: home of the SME Server

Sharing for windows drive mapping

Daniel Bingham

Sharing for windows drive mapping
« on: January 16, 2001, 10:38:12 AM »
Hi. Is there anyway known to be able to share a directory on the e-smith server so that you can directly map to that directory and store files there?

When you create an I-Bay, you can map that I-Bay as a dirve letter, but you can only write to the "files" subdirectory. I have a client whon I have installed e-smith for who has an access front end that points to H: for the backend, and I want to store that H: on the e-smtih server, without having to change every link to "h:\files\..."

Help!

Many thanks.

Gerald Jansen

Re: Sharing for windows drive mapping
« Reply #1 on: January 16, 2001, 06:39:22 PM »
As far as I know that is the way it must be. We have a number of clients that use vertical application software that must be mapped to a network drive. We set everything up in folders within the "files" folder and have yet to have a problem. I also work with access. I would be no big thing to change the access target directory.

Scott Smith

Re: Sharing for windows drive mapping
« Reply #2 on: January 16, 2001, 06:56:42 PM »
There is not option to create a "share" as opposed to an ibay -- the difference being that an ibay has the files+html+cgi-bin directories etc, whereas a share would have no predefined directories. There has been a request made to the wish list for the ability to setup such a "share". I endorse such an option, and you may want to add your voice to that wish.

Gordon Rowell

Re: Sharing for windows drive mapping
« Reply #3 on: January 16, 2001, 07:21:54 PM »
Scott Smith wrote:
>
> There is not option to create a "share" as opposed to an ibay
> -- the difference being that an ibay has the
> files+html+cgi-bin directories etc, whereas a share would
> have no predefined directories. There has been a request made
> to the wish list for the ability to setup such a "share". I
> endorse such an option, and you may want to add your voice to
> that wish.

The request has been heard and is being carefully considered so
as to include a clean migration strategy.

Gordon

Dan Elkins

Re: Sharing for windows drive mapping
« Reply #4 on: January 17, 2001, 09:14:40 AM »
I've accomplished this by creating a custom template for smb.conf.  I created shares that shared the files directory and all of the directories (cgi,html, and files)  If you would like some instructions, let me know.

Dan Elkins

Laurence Goodman

Re: Sharing for windows drive mapping
« Reply #5 on: January 17, 2001, 01:48:19 PM »
Windows 2000 does seem to have the ability to map to \server\ibay\files\data

barth wahlen

Re: Sharing for windows drive mapping
« Reply #6 on: January 17, 2001, 02:16:51 PM »
and what about the other way around:
map a windows share on the e-smith server?
i need this to extend my ftp-storage.... i dunno much about linux, i guess it's done with the mount command but how do i give it?
Let's say i have a win2000 server box as PDC called "dpssrv01" the name of the share is "remote_ftp".
How do i map that on the e-smith server so i can use it for my ftp?

Rob Flodine

Re: Sharing for windows drive mapping
« Reply #7 on: January 18, 2001, 03:27:41 AM »
Dan that would be very much appreciated. Daniel B. and I work together. Thanks for your assistance
Rob F

Dan Elkins

Re: Sharing for windows drive mapping
« Reply #8 on: January 18, 2001, 08:20:18 AM »
OK.  Here is what I did.  I created two shares per ibay.  ibayname - shares just the files directory so when I map a drive to \e-smith\ibayname it maps directly to the files directory.  ibayname-all which has all of the dirs (cgi, files, and html).

For e-smith 4.0 or 4.0.1:

1.  Telnet into the machine.
2.  If it doesn't exist, create the smb custom template directory.

     mkdir -p /etc/e-smith/templates-custom/etc/smb.conf

3.  Copy existing template files to new directory.

     cp /etc/e-smith/templates/etc/smb.conf/* /etc/e-smith/templates-custom/etc/smb.conf
     (<- all on one line)

4.  Edit the 90ibays file in the new custom template smb dir.

     pico /etc/e-smith/templates-custom/etc/smb.conf/90ibays

     Change this existing portion:
            $result .= "\n";
            $result .= "[$key]\n";
            $result .= "   comment = $properties{'Name'}\n";
            $result .= "   path = /home/e-smith/files/ibays/$key\n";
            $result .= "   read only = no\n";
            $result .= "   writable = yes\n";
            $result .= "   printable = no\n";
            $result .= "\n";
     To (notice the -all next to the $key):
            $result .= "\n";
            $result .= "[$key-all]\n";
            $result .= "   comment = $properties{'Name'}\n";
            $result .= "   path = /home/e-smith/files/ibays/$key\n";
            $result .= "   read only = no\n";
            $result .= "   writable = yes\n";
            $result .= "   printable = no\n";
            $result .= "\n";
     Then directly beneath that, write this (notice the /files after the $key):
            $result .= "\n";
            $result .= "[$key]\n";
            $result .= "   comment = $properties{'Name'}\n";
            $result .= "   path = /home/e-smith/files/ibays/$key/files\n";
            $result .= "   read only = no\n";
            $result .= "   writable = yes\n";
            $result .= "   printable = no\n";
            $result .= "\n";
     
4.  Save the file and exit pico.

5.  Expand the new template.

     /sbin/e-smith/expand-template /etc/smb.conf

6.  Then restart the smb service.

     service smb restart

That should do it.  Hopefully I didn't make any mistakes.  Check out:
  http://www.e-smith.org/content/custom/ for more information on customizing your e-smith installation.

Dan Elkins

Lowell

Re: Sharing for windows drive mapping
« Reply #9 on: January 19, 2001, 10:41:01 AM »
I have a box running in my office that I very carefully removed the cgi bin directory and the html directory, setup the folders within the files directory and very carefully setup the permissions to not allow the folders I setup to be deleated, but written to and deleated from.  I have certain folders and files that are permission setup to read only.  This is on a Version 4.0 setup, and is working very well.   I map to the ibay and from there they go into the files directory for their desired folder.  It is working as a file server only.  But like I said, working perfectly.  Up for weeks without a reboot.
Lowell