Samba 3.0.23pre1 and recycle.so

Thomas Bork tombork at web.de
Sun May 21 20:09:52 GMT 2006


Hi @all,

in Samba 3.0.23pre1 recycle.so creates the recycle directory with a 
totally wrong gid.

Configuration:

[public]
  comment = public directory on %h
  browseable = yes
  writeable = yes
  path = /public
  read list =
  write list =
  create mode = 0777
  force create mode = 0777
  directory mode = 0777
  force directory mode = 0777
  vfs object = recycle
  recycle:repository = samba_recycle_bin/%u
  recycle:directory_mode = 0777
  recycle:versions = yes
  recycle:keeptree = yes
  recycle:touch = yes
  recycle:maxsize = 0

Deleting user is tb:
deveis # id tb
uid=2001(tb) gid=100(users) groups=100(users),202(mew)

The recycle directory and the user directory are created with:

deveis # ls -alR /public/samba_recycle_bin
/public/samba_recycle_bin:
total 12
drwx------   3 tb     2147483404 4096 May 21 21:50 .
drwxrwxrwx  14 nobody nogroup    4096 May 21 21:50 ..
drwx------   2 tb     2147483404 4096 May 21 21:50 tb

/public/samba_recycle_bin/tb:
total 172
drwx------  2 tb     2147483404   4096 May 21 21:50 .
drwx------  3 tb     2147483404   4096 May 21 21:50 ..
-rwxrwxrwx  1 nobody nogroup    163501 Feb 15 16:25 log.smbd

gid of user tb is not 2147483404 but 100. Don't know, if this problem 
exists in older versions.

___________________________________________


Something generally to the recycler:

It would be nice, if the rights for the recycle directory (in my example 
samba_recycle_bin) could be configured separatly from the rights for the 
subdirectories (in my example %u). So in an public share the recycler 
himself could be accessable for all with

recycle:repository_mode = 0777

and the subdirectories only accessable to the users with

recycle:directory_mode = 0700


der tom


More information about the samba-technical mailing list