Re: [Samba] Re: Write Once Read Many share with samba

2008-05-21 Thread Mike Wilkinson

Hello all,

I've knocked together a vfs module that does this, basically a worm with 
the exception of directories. directories can be renamed if they're 
empty, otherwise it's readonly. I'm not sure what the policy is with 
posting attachments so won't include it here, give me a shout if your 
interested in it.

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Re: Write Once Read Many share with samba

2008-05-20 Thread Mike Wilkinson

Jean-Yves Avenard wrote:

Hi

2008/5/20 Brian May <[EMAIL PROTECTED]>:
  

I don't think it is possible with Unix or Samba permissions to:

* allow file writes but deny file appends (and other modifications?).
* allow creating files but deny creating folders.

which appears to be what you have done under windows.



This was my thoughts.
Samba is running on a FreeBSD 6.3 AMD64 server, filesystem is UFS.

I don't know of any ACL tools...

  
How about a VFS module that overrides just open, rmdir, rename and 
unlink? unlink/rmdir/rename becomes a no-op, open for write fails if the 
file exists?

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Recycle module... Stable?

2008-03-20 Thread Mike Wilkinson

Tim Bates wrote:

Michael Heydon wrote:
Could the files have been moved rather than deleted? I find alot more 
users accidentally dragging when double clicking than I do 
accidentally deleting things.
Well, I did a search on the entire set of folders we share on samba, 
and didn't find anything like what they said it was called. Not even 
in the recycle folders. Which is why I asked about it's stability.
Of course it's probably more likely it never existed where they though 
it was... They'll probably find it on a flash drive or something  ;-)


At least now I know someone is using that module and hasn't had any 
true problems. I can feel happier about having it enabled.


TB
I know it doesn't help now, but we see this accidental explorer 
drag/drop enough to always enable the full_audit module on all our 
writable shares, and have it syslog the result. It makes life a breeze 
when files go missing, especially when they don't quite get the name 
right...


 vfs objects = full_audit
 full_audit:priority = NOTICE
 full_audit:facility = LOCAL5
 full_audit:prefix = %I|%U|//%L/%S
 full_audit:success = rmdir unlink rename
 full_audit:failure = none

At least this way you know where it went, which machine did it, and when...




--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Multiple homedir entries in smb.conf ?

2008-02-11 Thread Mike Wilkinson
Try UnionFS under linux, assuming you don't have any user home directory 
collisions across the servers.


J. Strohschnitter wrote:

is it possible to add multiple homedir templates to smb.conf ?

I have a running linuxsystem where homefilesets are mounted 
from different windows-servers to subdirs like:


/home/server01/home/USERNAME
/home/server02/home/USERNAME
/home/server03/home/USERNAME

The users come via winbind. In the smb.conf the entry for the
homedir:

template homedir = /home/%U

So how is it possible to add /home/serverXX/home/%U to the
smb.conf ?

  
What about mounting with the bind option all the 
/home/$SERVER/home/$USERNAME dirs in /home/$USERNAME





Hi

don't know about bind-options while mounting. Is it possible
to mount multiple mountpoints to one directory ?
The windows-shares are mounted via smbfs with the entry in
the smbfstab:

//server01/home /home/server01/home/  cifs username=XX,password=XX,rw,
  gid=users,workgroup=XX,fmask=0700
[..]

Is there a chance to mount all server[01-03] to one moutpoint ?

  

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] explorer.exe MSDFS problems

2008-01-29 Thread Mike Wilkinson

Hello all,

We've had to roll out a dfs stub server to cope with a migration, and 
we've noticed that explorer.exe will fail whenever a UNC path that 
traverses the graft point is pasted into the address bar. Start-Run 
works fine, ie7 works fine,


For example,
   \\server1\share\graft

is a dfs redirect to:
   \\server2\share\fun

and under that server2 path is the directory structure:
   a/b/c/d

Pasting the UNC path \\server1\graft\a\b\c into the explorer.exe address 
bar causes:
   Windows cannot find '\\server1\graft\a\b\c' Check the spelling and 
try again.


However, pasting \\server1\graft into the explorer address bar, and 
navigating through works as expected. As noted above, Start-Run works as 
expected, ie7 works as expected.


It's obviously some different handling in explorer.exe, is anyone aware 
of either a samba fix/patch (oh please) or a registry fix for explorer?







--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba