Hello Dear Samba subsribers,
i have problem with "recycle" feature in my samba server. Everything
except that is working (users can see the server, share, can write to
share bla bla bla).
I made install on a fresh rh7.2 server. Aplly all update patches,
changed to kernel 2.4.18. Hardware is a compaq proliant 1850 server
(PII 450, aprox. 600 MB ram, IFT 7200 600GB raid connected through Adaptec
29160 UW SCSCI)
Samba compiled with options from samba.spec from samba-2.2.5 src rpm:
./configure \
--prefix=/usr --localstatedir=/var --with-configdir=/etc/samba \
--with-privatedir=/etc/samba --with-codepagedir=/etc/codepages \
--with-fhs --with-quotas --with-msdfs --with-smbmount \
--with-pam --with-pam_smbpass --with-syslog --with-utmp \
--with-sambabook=/usr/share/swat/using_samba \
--with-swatdir=/usr/share/swat --with-libsmbclient
make proto
make all nsswitch/libnss_wins.so
make debug2html
make bin/smbspool
cd ../examples/VFS
./configure --prefix=/usr --localstatedir=/var
make
All binaries, libraries, codepages, start and pam scripts went to right places
...
VFS modules and config. files also:
[root@srubka root]# ll /usr/lib/samba/vfs/
total 56
-rwxr-xr-x 1 root root 10311 Jul 19 21:46 audit.so
-rwxr-xr-x 1 root root 19316 Jul 19 21:45 block.so
-rwxr-xr-x 1 root root 20703 Jul 19 21:44 recycle.so
[root@srubka samba]# ls /etc/samba/
lmhosts recycle.conf~ samba.xinetd smb.conf smb.conf.orig
recycle.conf samba-block.conf secrets.tdb smb.conf~ smbusers
recycle.conf looks like:
[root@srubka samba]# cat recycle.conf
# name of the recycle bin at root level of share
name = RecycleBIN
# mode :
# KEEP_DIRECTORIES = retain directory hierarchy of deleted file,
# i.e. recreate all directories in recycle bin
# VERSIONS = create copies in case of identical file names in recycle
bin
# TOUCH = touch access date of files moved into the recycle bin
mode = KEEP_DIRECTORIES|VERSIONS|TOUCH
# maximum file size to be moved to the recycle bin (0 means any size)
maxsize = 0
# exclude file names with the following extensions:
exclude = *.tmp|*.temp|*.o|*.obj|~$*
# exclude directories:
excludedir = /tmp|/temp|/cache
# Add file extensions of files where no versioning is wanted (i.e. copy # 1...)
# only valid when mode=VERSIONS is set
noversions = *.doc|*.xls|*.ppt
I made TEST share:
[test]
comment = SRUBKA TEST
path = /home/test
force user = root
force group = root
read only = No
guest ok = Yes
hide dot files = No
volume = TEST
In /home/test directory i got RecycleBIN directory:
[root@srubka test]# ll
total 8
drwxr-xr-x 2 root root 4096 Jul 20 11:04 Nowy folder
drwxrwxrwx 2 root root 4096 Jul 20 11:06 RecycleBIN
-rw-r--r-- 1 root root 0 Jul 20 11:27 test.doc~
I even tried to lookup another recycle directory:
[root@srubka test]# find / -name RecycleBIN -print
/home/test/RecycleBIN
[root@srubka test]#
Under Windoze box (98 SE) i made several files with different
extensions (txt, pdf, doc, ppt ...) and erased them. Erased files
didnt appear in RecycleBIN - i look for then from windoze and linux
console (ls -la in /home/test/RecycleBIN/)
What is wrong with my system (nothing wrong in my /var/log/samba/* )?
/etc/samba/smb.conf:
[global]
client code page = 852
workgroup = TESTOWO
netbios name = SRUBKA
server string = Phile Server
interfaces = 10.10.12.10/255.255.255.0
encrypt passwords = Yes
update encrypted = Yes
map to guest = Bad User
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *
passwd:*all*authentication*tokens*updated*successfully*
unix password sync = Yes
admin log = Yes
log level = 4
syslog = 4
log file = /var/log/samba/samba-log.%U
max log size = 100
debug pid = Yes
debug uid = Yes
large readwrite = Yes
announce version = 5.3
deadtime = 60
max open files = 100000
character set = ISO8859-2
logon script = %u.BAT
domain logons = Yes
os level = 128
preferred master = True
domain master = True
wins proxy = Yes
wins server = 10.10.12.21
utmp = Yes
panic action = echo "Samba zwariowala"
comment = SRUBKA
create mask = 0755
mangling char = ^
strict locking = Yes
volume = SRUBKA
[test]
comment = SRUBKA TEST
path = /home/test
force user = root
force group = root
read only = No
guest ok = Yes
hide dot files = No
volume = TEST
--
Best regards,
gnu_is_not_unix