Default [homes] share template uses incorrect %S macro.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Debian) |
Confirmed
|
Low
|
|||
samba (Ubuntu) |
Invalid
|
Low
|
Unassigned |
Bug Description
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.
(See https:/
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~
tags: | added: patch |
Changed in samba (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Triaged |
Changed in samba (Debian): | |
importance: | Unknown → Low |
status: | Unknown → Confirmed |
Thanks for reporting this issue and attaching a patch. The best way for us to fix this in Ubuntu is to get it fixed in the upstream Debian package. Could you please file a bug in the upstream Debian bug tracker and link the upstream bug report here? (http:// www.debian. org/Bugs/)
Thanks!