Andy,
I didn't get there in the end I'm afraid.
I was just looking at my test bench machine here and trying to remebmer what I did.
I hacked the 90ibays file directly rather than rather than trying to create a fragment.
MAKE A COPY FIRST !!!!!!
My standard file here is as follows. After the 'printable' line I put in something similar to the following :
if ($key eq 'name of your ibay that you want to change oplocks on')
{
$result .= "oplocks = true\n";
}
Then run :
/sbin/e-smith/expand-template /etc/smb.cnf
and check to see if it's OK.
Just tried it and it works here ! Good luck.
B. Rgds
John
File: 90ibays Col 0 1952 bytes 0%
{
# process all information-bay directories
my %accounts;
tie %accounts, 'esmith::config', '/home/e-smith/accounts';
my $key;
my $value;
my $result = "";
while (($key,$value) = each %accounts)
{
my ($type, %properties) = split (/\|/, $value, -1);
if ($type eq 'ibay')
{
$result .= "\n";
$result .= "[$key]\n";
$result .= "comment = $properties{'Name'}\n";
#---------------------------------------
# If no public access, have the share go directly to the files
# subdirectory (for easier drive mappings)
# Otherwise, have the share mapping show all three subfolders
#---------------------------------------
if ($properties{'PublicAccess'} eq 'none')
{
$result .= "path = /home/e-smith/files/ibays/$key/files\n";
}
else
{
$result .= "path = /home/e-smith/files/ibays/$key\n";
}
$result .= "read only = no\n";
$result .= "writable = yes\n";
$result .= "printable = no\n";
******somewhere here**************
# Make the defaults really stupid
my $fmode = "0000";
if ($properties{'UserAccess'})
{