Skip to content

Samba recycle bin not accessible #7537

@mrmarkuz

Description

@mrmarkuz

The first user that deletes a file creates the .recycle directory but with 700 permissions, so users from the same group can't access the recycle bin.

Steps to reproduce

  • Setup internal samba user domain and enable the file server
  • Create users "user1" and "user2" and add them to a group "group1"
  • Setup a samba share "testshare", allow write for "group1" and enable the recycle bin
  • As "user1" create a file in the "testshare" and delete it
  • As "user2" try to access the recycle bin

Expected behavior

The recycle bin is accessible

Actual behavior

The recycle bin isn't accessible for user2 due to wrong permissions. Only user1 is granted rights to access it:

root@dc1:/# smbcacls -N //dc1/myshare1 '.recycle'
REVISION:1
CONTROL:SR|DP
OWNER:NBDOM\user1
GROUP:NBDOM\Domain Users
ACL:NBDOM\user1:ALLOWED/0x0/FULL
ACL:NT AUTHORITY\SYSTEM:ALLOWED/0x0/FULL

Proposed solution

Set recycle:directory_mode = 0770 so users that are in the same group can access the recycle bin.

Components

Samba 3.0.0

See also


Thanks to gio.pelli

Metadata

Metadata

Assignees

No one assigned

    Labels

    verifiedAll test cases were verified successfully

    Type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions