smb.conf contains valid users = %S in [global]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Fix Released
|
High
|
Mathias Gug |
Bug Description
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_
Related branches
Changed in samba: | |
importance: | Undecided → High |
status: | New → Triaged |
I've added a debdiff that fixes this problem. It merges the two paragraphs about valid users and comments out the valid users option.