[Samba] Samba 2.2.5 Recycle Bin file permissions

Giulio Orsero giulioo at pobox.com
Thu Jun 27 23:08:02 GMT 2002


On Thu, 27 Jun 2002 14:51:56 -0700, "Dan O'Connor" <dan at ferrarishields.com>
wrote:

>The new VFS recycle bin, however, sets the file permissions on deleted
>files/directories to 700. This means that only the user who
>modifies/deletes a file can access it in the recycle bin. Also, the

You have to edit recycle.c:

@@ -322,7 +323,7 @@
    pstring newdir;
 
    *newdir='\0';
-   mode=S_IREAD|S_IWRITE|S_IEXEC;
+   mode=S_IREAD|S_IWRITE|S_IEXEC|0010|0040;
    pstrcpy(tempstr,dname);
    y=tempstr;
    /* Create directory tree if neccessary */

This will grant read access to group.

-- 
giulioo at pobox.com




More information about the samba mailing list