Using Samba 2.2.5 on FreeBSD 4.5. We have a file share used by several people working on common projects. The share is set up with force group = cad create mask = 0774 force create mode = 0774 directory mask = 0775 force directory mode = 0775 so that everyone can create/modify any file in the share. 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 first user to delete a file got ownership of the recycle directory, which locks everyone else out of the whole recycle bin (I manually chmod-ed it to 770 to allow everyone access). We need to let everyone in the group have access to every file in the recycle bin. Is there a way to change the default file permissions for the recycle bin? An option in recycle.conf would be nice... --Dan
On Thu, 27 Jun 2002 14:51:56 -0700, "Dan O'Connor" <dan@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, theYou 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@pobox.com
I'm using here EXT3 with ACL support. Neither 'normal' permissions nor ACL bits are modified. (samba 2.2.5 from mandrake package). -----Original Message----- From: Giulio Orsero [SMTP:giulioo@pobox.com] Sent: Friday, June 28, 2002 8:06 AM To: Samba List Subject: Re: [Samba] Samba 2.2.5 Recycle Bin file permissions On Thu, 27 Jun 2002 14:51:56 -0700, "Dan O'Connor" <dan@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, theYou 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@pobox.com -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba