[Samba] Missing shares in 4.16
rpenny at samba.org
Thu Nov 10 08:41:07 UTC 2022
On 10/11/2022 08:05, Matthias Kühne | Ellerhold AG via samba wrote:
> Hello Rowland, Hello Samba-people,
> we've caved and switched to the "homes" share with path=/storage/homes/%U .
You do not normally use the 'path' parameter with the '[homes]' share,
the path to the users home directory is picked up from whatever nsswitch
returns and as you are using the 'ad' idmap backend, this would be
whatever is set in the unixHomeDirectory attribute in the users AD object.
Try reading the 'SPECIAL SECTIONS' part of 'man smb.conf'
> The drawbacks of this solution are
> * Every user sees this share.
This is unfortunately one of the drawbacks of still using SMBv1, of
course the major drawback is that SMBv1 is very insecure.
Even users that shouldnt see it because
> they dont have a home directory on this specific server.
> * The name of the share is not changeable for us. We'd like to have
> add a specific suffix to it, but I havent found any documentation to
> do it.
Try '%S' instead of '%U'
> The drawbacks are good for now, but we prefer the old version tbh...
'[homes]' is the old way of doing things.
> Spaces in share names aren't a problem - we have a lot of shares with a
> lot of spaces in them.
> We tried renaming the share to use _ instead of a space - same bug
> (share is hidden but accessible).
> Is this a bug for the bug tracker or is this accepted (samba) behavior?
This is how '[homes]' has always worked.
More information about the samba