[Bug 131419] [NEW] smb.conf contains valid users = %S in [global]

Launchpad Bug Tracker 131419 at bugs.launchpad.net
Thu Feb 17 08:46:37 UTC 2011


You have been subscribed to a public bug by Daniel Holbach (dholbach):

Binary package hint: samba-common

In Ubuntu 7.10 (Gutsy Gibbon) as of Friday 10 August 2007,
/etc/samba/smb.conf contains the following line:

valid users = %S

which is clearly intended (as per the comment) to be underneath the
line:

[homes]

however, [homes] is, by default, commented out. This makes valid users =
%S global, meaning that were I to name a share "share", presumably this
would result in only the user "share" being allowed to access it.

The oddest thing about it is that there is not only this in the
commented [homes]:

# Restrict access to home directories 
# to the one of the authenticated user
# This might need tweaking when using external authentication schemes
   valid users = %S

But also this which has been present in previous versions and is not
problematic:

# By default, \\server\username shares can be connected to by anyone
# with access to the samba server.  Un-comment the following parameter
# to make sure that only "username" can connect to \\server\username
;   valid users = %S

Hence the first is a duplicate of the second and is placed incorrectly
and for seemingly no reason, causing an inability to login with the
status code NT_STATUS_LOGON_FAILURE. Without it, samba operates normally
- the best course of action, therefore, would be to remove it.

** Affects: samba (Ubuntu)
     Importance: High
     Assignee: Mathias Gug (mathiaz)
         Status: Fix Released

-- 
smb.conf contains valid users = %S in [global]
https://bugs.launchpad.net/bugs/131419
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is a direct subscriber.




More information about the Ubuntu-sponsors mailing list