Default [homes] share template uses incorrect %S macro.
Binary package hint: samba
The default smb.conf suggests a rather unhelpful default for the 'valid users' option in the [homes] section. It's commented out by default, but uncommenting the template leads to some unexpected behavior.
The suggestion is to use %S as a parameter ("valid users = %S"); back around 2005, this expanded to the username, meaning that this setting enforced that users could only log into their own home share, as described. Now, however, it expands to the current service name, which is very unlikely to match the username. The configuration incorrectly states that %S expands to the username, which is no longer true. Using the default configuration leads to confusing failures; the proper setting here is to have "valid users = %U" as the default, since %U expands to the name of the current user, according to the smb.conf(5) manpage.
This is present in samba 2:3.4.7~
|Changed in samba (Ubuntu):|
|importance:||Undecided → Low|
|status:||New → Triaged|
|Changed in samba (Debian):|
|importance:||Unknown → Low|
|status:||Unknown → Confirmed|