Problems with SMB.CONF (2nd)

Robert Dahlem Robert.Dahlem at frankfurt.netsurf.de
Tue Dec 22 17:20:10 GMT 1998


Majid,

On Wed, 23 Dec 1998 00:20:31 +1100, Majid Tajamolian wrote:

>> >;   hosts allow = *.bol.sharif.ac.ir
>> >;   hosts allow = .bol.sharif.ac.ir
>> >;   hosts allow = 194.225.42.*
>> >   hosts allow = 194.225.42.

>> >2. As you see above, if I use a domain detector except with the format
>> >   "194.225.42." , clients on our LAN can not see my machine or connect to
>> >   it.

>> Cases 1 and 3 are clearly false. No asterisks are needed (man hosts_access).

>> Case 2 should work. How are the names of the clients resolved? Establish a 
>> connection from some client. Then do
>[snip]

>OK. It's right but wonderful. The problem is caused by my /etc/hosts file.
>This is a cut of it:
>194.225.42.34   kordan arash    kordan.bol.sharif.ac.ir
[snip]

>The .bol.sharif.ac.ir tail did not appended to clients' names. I changed it
>as followings and the problem was corrected:
>194.225.42.34   kordan.bol.sharif.ac.ir         kordan arash
[snip]

>Is it a bug in SAMBA?!

Not, thats normal behaviour of the gethostbyaddr() library routine: it returns the 
first matching host name from /etc/hosts.

>> >3. The "dont descend" parameter for the "root" share name has not any
>> >   effect!

>> Did you try it without the spaces like it is described in the example in "man 
>> smb.conf"?

>YES! But no effects! Why?!

Is it shown by testparm?

Can you provide a log made with debug level 8 of some test case?

Hasta la vista,
               Robert

-- 
---------------------------------------------------------------
Robert.Dahlem at frankfurt.netsurf.de
Radio Bornheim - 2:2461/332 at fidonet +49-69-4930830  (ZyX, V34)
                 2:2461/326 at fidonet +49-69-94414444 (ISDN X.75)
---------------------------------------------------------------



More information about the samba mailing list