There's a good chance I am misunderstanding your use case but for a normal standalone samba server it looks like what you want is a [homes] share.
It looks something like this in /etc/samba/smb.conf:
Code:
[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0700
directory mask = 0700
browseable = No
veto files = /*.*/
That will create a share of the Linux user's home directory - "on the fly"
It is non-browseable so the client user would have to access it by the user's name: smb://hostname.local/morbius in Linux or MacOS and \\hostname.local\morbius in Windows
The user ( morbius in this example ) would have to exist on the server and be added to the samba password database:
Code:
sudo smbpasswd -a morbius
You can either "map" the share in Windows or use a mount.cifs mount in Linux to have it done automatically.
How all of this would work within an AD / SSSD setup I have no idea.
Bookmarks