Project

General

Profile

Feature #75226

Allow multiple per-user SMB shares

Added by Craig Shiels 7 months ago. Updated 5 months ago.

Status:
Closed
Priority:
No priority
Assignee:
Andrew Walker
Category:
Services
Target version:
Estimated time:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:

Description

On a system being used as a target for PC backups using SMB, it would be desirable to have different data sets for system backups vs file backups so that different snapshot policies can be used.

At present I need to use "homes" as the backup target. This means that the same snapshot policy must be used for a users's "home" directory, system backups and file backups.

For file backups, I might want to snapshot once a day for 1 month. System backups I might want to do once a week. Home directory backups I might want to do every 3 hours.

At present this separation is not possible.

The goal is to have a tick box that allows "%U" to be appended to the path in smb4.conf. At present, smb4.conf has:

[homes]
valid users = %D\%U
path = /mnt/pc_backup/%D/%U

What I want to do is have smb4.conf have the following:

[homes]
valid users = %D\%U
path = /mnt/homes/%D/%U
[SystemBackup]
valid users = %D\%U
path = /mnt/SystemBackup/%D/%U
[FileBackup]
valid users = %D\%U
path = /mnt/FileBackup/%D/%U

While there are workaround where /mnt/SystemBackup & /mnt/FileBackup are shared, for security reasons as well as simplicity for users, I would prefer to see user specific shares presented rather than general access shares.

History

#1 Updated by Craig Shiels 7 months ago

The goal would be to have something like this in the "SMB Sharing" page:

[ ] Homes
[ ] Private share for each user

If "Homes" is selected then the "Private share for each user" is a forced selection that cannot be changed.

If "Private share for each user" is selected then "%D/%U" is added to the share path used with samba.

#2 Updated by Dru Lavigne 7 months ago

  • Assignee changed from Release Council to Andrew Walker

#4 Updated by Andrew Walker 6 months ago

  • Status changed from Unscreened to Screened
  • Target version changed from Backlog to 11.3-BETA1

I don't think we need another checkbox, but we can loosen up our path validation rules to allow the samba macros %D, %U, etc. Loosely targeted for 11.3.

#5 Avatar?id=14398&size=24x24 Updated by Kris Moore 5 months ago

  • Status changed from Screened to Closed

Also available in: Atom PDF