[Samba] recycle on a fileserver domain member

Elias Pereira empbilly at gmail.com
Tue Jun 13 17:56:33 UTC 2017


Hello guys,

I configured the recycle in my fileserver, but when I logged in with normal
user and delete some files, folders, etc, the errors occurs.

./addc-pc-01.log:28251:  recycle: mkdir failed for .recycle with error:
Permission denied
./addc-pc-01.log:28252:[2017/06/13 14:15:11.816085,  3]
../source3/modules/vfs_recycle.c:582(recycle_unlink)
./addc-pc-01.log:28253:  recycle: Could not create directory, purging
HOME/eloisa.gomes/Cópia de CD Versão Final.doc...
./addc-pc-01.log:32167:[2017/06/13 14:22:46.278805,  1]
../source3/modules/vfs_recycle.c:311(recycle_create_dir)
./addc-pc-01.log:32168:  recycle: mkdir failed for .recycle with error:
Permission denied
./addc-pc-01.log:32169:[2017/06/13 14:22:46.278823,  3]
../source3/modules/vfs_recycle.c:582(recycle_unlink)
./addc-pc-01.log:32170:  recycle: Could not create directory, purging
HOME/eloisa.gomes/Cópia de CD Versão Final.doc...
./addc-pc-01.log:32217:[2017/06/13 14:22:46.284267,  1]
../source3/modules/vfs_recycle.c:311(recycle_create_dir)
./addc-pc-01.log:32218:  recycle: mkdir failed for .recycle with error:
Permission denied

[global]
...
vfs objects = acl_xattr, recycle, full_audit

[storage]
        path = /home/dados/
        read only = no
        #hide unreadable = yes
        #hide unwriteable files = yes

        ## Lixeira para o Samba ADDC
        recycle:keeptree = yes
        recycle:versions = yes
        recycle:touch = yes
        recycle:directory_mode = 0700
        recycle:subdir_mode = 0700
        recycle:inherit_nt_acl = Yes
        #acl_xattr:ignore system acls = yes
        recycle:repository = .recycle/%U
        recycle:exclude = *.tmp, *.log, *.obj, ~*.*, *.bak
        recycle:exclude_dir = tmp, cache, profiles

Do I need to create the .recycle folder on my fileserver? If yes, what
permissions do I set in the folder?

-- 
Elias Pereira


More information about the samba mailing list