recycle.so creat up level's directoryes with drwx------ and other users can't use recycle. Reproducible: Always Steps to Reproduce: 1. On server: /etc/samba/smb.conf: create mode = 660 directory mode = 770 2. On winhost1, winuser1: net use w: \\server\share1 cd w: mkdir w:\dir1 mkdir w:\dir1\dir2 mkdir w:\dir1\dir2\dir3 echo test >w:\dir1\dir2\dir3\test.txt 3. On server: root@server / # cd /shares root@server shares # ls -lR share1 share1: total 0 drwxrwx--- 3 winuser1 group1 17 Oct 5 08:29 dir1 share1/dir1: total 0 drwxrwx--- 3 winuser1 group1 17 Oct 5 08:29 dir2 share1/dir1/dir2: total 0 drwxrwx--- 2 winuser1 group1 21 Oct 5 08:29 dir3 share1/dir1/dir2/dir3: total 4 -rw-rw---- 1 winuser1 group1 6 Oct 5 08:29 test.txt 4. On winhost1, winuser1: del w:\dir1\dir2\dir3\test.txt 5. On server: root@server shares # cd /shares/share1 root@server share1 # ls -lR .recycle .recycle: total 0 drwx------ 3 winuser1 group1 17 Oct 5 08:29 dir1 .recycle/dir1: total 0 drwx------ 3 winuser1 group1 17 Oct 5 08:29 dir2 .recycle/dir1/dir2: total 0 drwx------ 2 winuser1 group1 21 Oct 5 08:29 dir3 .recycle/dir1/dir2/dir3: total 4 -rw-rw---- 1 winuser1 group1 6 Oct 5 08:29 test.txt 6. On winhost2, winuser2: net use w: \\server\share1 cd w: echo test >w:\dir1\dir2\dir3\test2.txt 7. On server: root@server / # cd /shares root@server shares # ls -lR share1 share1: total 0 drwxrwx--- 3 winuser1 group1 17 Oct 5 08:28 dir1 share1/dir1: total 0 drwxrwx--- 3 winuser1 group1 17 Oct 5 08:29 dir2 share1/dir1/dir2: total 0 drwxrwx--- 2 winuser1 group1 37 Oct 5 08:42 dir3 share1/dir1/dir2/dir3: total 8 -rw-rw---- 1 winuser1 group1 6 Oct 5 08:29 test.txt -rw-rw---- 1 winuser2 group1 6 Oct 5 08:42 test2.txt 8. On winhost2, winuser2: del w:\dir1\dir2\dir3\test2.txt On server: /var/log/samba3/samba.IPADDR.log: [2004/10/05 08:50:31, 1] modules/vfs_recycle.c:recycle_create_dir(235) recycle: mkdir failed for .recycle/dir1/dir2 with error: Permission denied 9. samba-3.0.7/source/modules/vfs_recycle.c: 206: static BOOL recycle_create_dir(vfs_handle_struct *handle, const char *dname) 216: mode = S_IRUSR | S_IWUSR | S_IXUSR; 234: if (SMB_VFS_NEXT_MKDIR(handle, handle->conn, new_dir, mode) != 0) { Mode in line 216 (700) not equal directory mode (770) in smb.conf. Actual Results: /var/log/samba3/samba.IPADDR.log: [2004/10/05 08:50:31, 1] modules/vfs_recycle.c:recycle_create_dir(235) recycle: mkdir failed for .recycle/dir1/dir2 with error: Permission denied
This is an upstream issue, and it seems to be known, see following post on the samba mailinglist: http://lists.samba.org/archive/samba/2004-February/081217.html can you report the bug on https://bugzilla.samba.org/ ?
closing this bug for now, as we can't do much about it. Feel free to ask the samba.org guys to fix that problem :)