Red Hat Bugzilla – Bug 104290
testparm incorrectly checks host-based access settings
Last modified: 2007-11-30 17:06:58 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030516
Description of problem:
In smb.conf, share-level host based access controls (eg 'hosts allow') can grant
less, but never more, access than the global hosts based access controls.
However, if smb.conf looks like this:
hosts allow 192.168.0.
hosts allow 192.168.1.
'testparm smb.conf mymachine 192.168.1.5' will list myshare as accessable, but
because myshare's hosts allow line cannot grant access to networks that the
global hosts allow does not grant access to, any actual attempt to connect will
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Ingredients: Samba client and server on different networks
1. Edit /etc/samba/smb.conf so the the [global] section does not allow the
client's network, but one share does (as above)
2. Run 'testparm /etc/samba/smb.conf <hostname> <hostIP>' -- the share will be
listed as accessable.
3. Run 'smbclient //smbserver/share -I <smbserverIP>' connection will be refused.
This bug is filed against RHEL 3, which is in maintenance phase.
During the maintenance phase, only security errata and select mission
critical bug fixes will be released for enterprise products. Since
this bug does not meet that criteria, it is now being closed.
For more information of the RHEL errata support policy, please visit:
If you feel this bug is indeed mission critical, please contact your
support representative. You may be asked to provide detailed
information on how this bug is affecting you.