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@frankfurt.netsurf.de Radio Bornheim - 2:2461/332@fidonet +49-69-4930830 (ZyX, V34) 2:2461/326@fidonet +49-69-94414444 (ISDN X.75) ---------------------------------------------------------------
Majid,>> >> >3. The "dont descend" parameter for the "root" share name has not any >> >> > effect!>> Can you provide a log made with debug level 8 of some test case?>OK, enclosed are log files with debug level 8 which I connect to the >"root" service and descend (!) to the /dev directory.Your logs show clearly that samba is using "./dev" instead of "/dev". As far as I remember there is a hint in "man smb.conf" that one has to experiment a little with i.e. "./dev" and so on. Would you please be so kind: try this and report about your (non-)success? Hasta la vista, Robert -- --------------------------------------------------------------- Robert.Dahlem@frankfurt.netsurf.de Radio Bornheim - 2:2461/332@fidonet +49-69-4930830 (ZyX, V34) 2:2461/326@fidonet +49-69-94414444 (ISDN X.75) ---------------------------------------------------------------
Majid, On Thu, 24 Dec 1998 17:39:22 +0100, Robert Dahlem wrote:>Majid,>>> >> >3. The "dont descend" parameter for the "root" share name has not any >>> >> > effect!>Your logs show clearly that samba is using "./dev" instead of "/dev". As far as I >remember there is a hint in "man smb.conf" that one has to experiment a little >with i.e. "./dev" and so on.>Would you please be so kind: try this and report about your (non-)success?Ok, I messed around a little: It's indeed a little confusing because it depends on the behaviour of the client. For getting an image of what is really happening, you can try the following: In trans2.c are two matches on "dirpath=<%s> dontdescend=<%s>". They both normally go for debug level 8. I lowered that to 2, recompiled and restarted smbd. Then I made a connection, found out (with smbstatus) the associated PID and send a "kill -USR1 <PID>" to raise the debug level to 2 (I normally run with level 1). Then I browsed around a little and watched log.smb filling with lines like dirpath=<proc> dontdescend=</proc,./proc> So the clue was to add "dont descend = proc,/proc,./proc" to my smb.conf. The man page is totally correct where it says: Note that Samba can be very fussy about the exact format of the "dont descend" entries. :-) Hasta la vista, Robert -- --------------------------------------------------------------- Robert.Dahlem@frankfurt.netsurf.de Radio Bornheim - 2:2461/332@fidonet +49-69-4930830 (ZyX, V34) 2:2461/326@fidonet +49-69-94414444 (ISDN X.75) ---------------------------------------------------------------