[Bug 668368] Re: Default [homes] share template uses incorrect %S macro.
Bug Watch Updater
668368 at bugs.launchpad.net
Wed Nov 21 04:50:14 UTC 2012
** Changed in: samba (Debian)
Status: Unknown => Confirmed
** Changed in: samba (Debian)
Importance: Unknown => Low
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/668368
Title:
Default [homes] share template uses incorrect %S macro.
Status in “samba” package in Ubuntu:
Invalid
Status in “samba” package in Debian:
Confirmed
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://bugzilla.samba.org/show_bug.cgi?id=7766 for some more
background; that's a related problem which exists upstream.)
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~dfsg-1ubuntu3.2 on Lucid, at least.
It was, according to debian/changelog, added in 3.0.22-1ubuntu3, and
is still present in debian/smb.conf in the current version, 2:3.5.4
~dfsg-1ubuntu8, in Maverick. The attached patch against
debian/smb.conf from the version in Maverick fixes the issue.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/668368/+subscriptions
More information about the foundations-bugs
mailing list