Project

General

Profile

Bug #74262

set appropriate permissions on .recycle directory

Added by Bug Clerk 11 days ago. Updated 9 days ago.

Status:
In Progress
Priority:
No priority
Assignee:
Andrew Walker
Category:
Services
Target version:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
No
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
HUY-748-54659
Hardware Configuration:
ChangeLog Required:
No

Description

We have a TrueNAS customer that has enabled the recycle bin functionality in Samba. They are getting hammered with error messages like similar.

[2019/01/21 12:05:46.738270, 1] ../source3/modules/vfs_recycle.c:311(recycle_create_dir)
recycle: mkdir failed for .recycle/jwheat with error: Permission denied

After discussion with Andrew Walker, an idea arose to fix this by doing the following.

1. if recycle bin is enabled
2. on connect, samba will "become root" and create the user directory underneath the .recycle directory
3. after creation, samba will chown that user directory to the ad user on connect

This will get around the permissions errors related to the .recycle directory that this customer is experiencing.


Related issues

Copied from FreeNAS - Bug #73891: set appropriate permissions on .recycle directoryDone

History

#1 Updated by Bug Clerk 11 days ago

  • Copied from Bug #73891: set appropriate permissions on .recycle directory added

#2 Updated by Bug Clerk 11 days ago

  • Status changed from Unscreened to In Progress

#3 Updated by Dru Lavigne 9 days ago

  • Target version changed from Master - FreeNAS Nightlies to 11.2-U3

#4 Updated by Dru Lavigne 9 days ago

Steps to test:
1) create share with recycle checkbox checked (enabled).
2) create a test file and delete it via an SMB client.

Also available in: Atom PDF