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