Public bug reported:

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.

** Affects: samba (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Default [homes] share template uses incorrect %S macro.
https://bugs.launchpad.net/bugs/668368
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to