Hi all, I'm trying to access a NT machine through the Internet. First I used an win95 as a client, but since I couldn't get it to work, I used a Linux machine (kernel 2.0.29) with Samba 1.9.18p7 to get some feedback. I did the following: linux01/usr/local/samba/bin> ./smbclient -L ntserver -I a.b.c.d Added interface ip=<myip> bcast=<broadcast> nmask=<netmask> Session request failed (131,130) with myname=LINUX01 destname=NTSERVER Called name not present Try to connect to another name (instead of NTSERVER) You may find the -I option useful for this I grepped around and found the following messages related to the error codes 131,130: nterr.h:#define NT_STATUS_GUIDS_EXHAUSTED (131) nterr.h:#define NT_STATUS_TOO_MANY_GUIDS_REQUESTED (130) Someone could point me where I could learn more about this? What is the meaning of GUIDS? Thanks in advance, -- Paulo Henrique -- Paulo Henrique Mascarenhas Sant'Anna e-mail: phm@fund.cepel.br Analista de Suporte CDIE/CEPEL http://www.cepel.br/~phm
Just recently all but a few of the Win98 samba servers on the network I am connected to seem to be unable to accept session requests. At first I thought it was a faulty version of smbclient, so I upgraded to 2.0.6, but it didn't solve the problem. When I query for master browsers with "nmblookup -M -" a list of master browsers is given. But when I query a master browser for servers, I have been getting the error "session request to ... failed (Called name not present)" I have no clue as to why this should suddenly happen. When I do manage to connect to a valid master browser, I get the same error, but a list of servers is given to me anyway. Any ideas? -Chris Hoefler
Hi guys, Iam very new to samba, I have the o'reilly and SSC books. I have reviewed your archives and Iam still stuck with what I believe to be a very simple problem (for someone who knows SAMBA, which I dont). I have started smbd and nmbd using samba.sh (listed below) this file is located on my 3.3 freebsd server /usr/local/etc/ Both daemons appear to be running but when I preform the 2 commands below to verify they are configured you get the following: # nmblookup -B rapidtest Sending queries to 10.0.0.30 # smbclient -L rapidtest -U '' -N Added interface ip=10.0.0.30 bcast=10.0.0.255 nmask=255.255.255.0 session request to RAPIDTEST failed session request to *SMBSERVER failed I have run a testparm on my smb.conf and it has no errors. I have included my smb.conf and samba.sh below to assist. Also see below are my log files Any help would be greatly appreciated. Cheers Dave smb.conf ---------------------------------------- [global] workgroup = SIMPLE [test] comment = For testing only, Please path = /usr/local/samba/test read only = no guest ok = yes samba.sh --------------------------------------- #!/bin/sh smbspool=/var/spool/samba pidfiledir=/var/run smbd=/usr/local/sbin/smbd nmbd=/usr/local/sbin/nmbd # start if [ "x$1" = "x" -o "x$1" = "xstart" ]; then if [ -f $smbd ]; then if [ -d $smbspool ]; then rm -f $smbspool/* fi echo -n ' Samba' $smbd -D $nmbd -D fi # stop elif [ "x$1" = "xstop" ]; then kill `cat $pidfiledir/smbd.pid` kill `cat $pidfiledir/nmbd.pid` fi log.smb--------------- [2000/01/12 11:21:07, 1] smbd/server.c:main(628) smbd version 2.0.5a started. Copyright Andrew Tridgell 1992-1998 [2000/01/12 11:21:07, 1] smbd/files.c:file_init(216) file_init: Information only: requested 10000 open files, 1054 are available. [2000/01/12 14:30:46, 0] smbd/oplock.c:open_oplock_ipc(92) open_oplock_ipc: Failed to get local UDP socket for address 100007f. Error was Can't assign requested address [2000/01/12 14:30:46, 0] smbd/oplock.c:open_oplock_ipc(92) open_oplock_ipc: Failed to get local UDP socket for address 100007f. Error was Can't assign requested address [2000/01/12 21:40:36, 1] smbd/server.c:main(628) smbd version 2.0.5a started. Copyright Andrew Tridgell 1992-1998 [2000/01/12 21:40:36, 1] smbd/files.c:file_init(216) file_init: Information only: requested 10000 open files, 1054 are available. log.nmb ---------------------------------------------------------------- [2000/01/12 11:16:54, 0] nmbd/nmbd.c:sig_term(68) Got SIGTERM: going down... [2000/01/12 11:21:07, 1] nmbd/nmbd.c:main(684) Netbios nameserver version 2.0.5a started. Copyright Andrew Tridgell 1994-1998 [2000/01/12 11:26:53, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(406) ***** Samba name server RAPIDTEST is now a local master browser for workgroup SIMPLE on subnet 10.0.0.30 ***** [2000/01/12 21:40:36, 1] nmbd/nmbd.c:main(684) Netbios nameserver version 2.0.5a started. Copyright Andrew Tridgell 1994-1998 [2000/01/12 21:46:26, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(406) ***** Samba name server RAPIDTEST is now a local master browser for workgroup SIMPLE on subnet 10.0.0.30 ***** ---- This mail item has passed through an insecure network. All enquiries should be directed to the message author.
Hi, I'm running Samba 2.0.5 on RedHat 6.1. Suddenly session request began to fail when attempting to connect using smbclient: session request to SERVER failed session request to *SMBSERVER failed I had been connecting successfully for a number of days prior. No changes were explicitly made to the Samba configuration. A search of the Samba list archive revealed that others have run into similar problems. Diagnosis.txt has a number of suggestions, none of which are applicable. Other documentation points to an error internal to Samba, but offers no fix. Any thoughts that might assist in addressing this problem would be greatly appreciated. Regards, Dave
I have a Unix server that has been connected to an NT box using smbmount for quite some time. All of a sudden I am now getting: session request to [ip address] failed I have rebooted the NT machine assuming that it was at fault, but I still get the error. We have not made any changes to this system. Does anyone have any suggestions? I had upgraded the smb clients to 2.0.7 about a month or so ago, but it worked fine then. Thanks, Gill Potter Discreet Medical Solutions p: 646-865-0720 ext. 200 f: 646-865-0717 c: 917-754-7669 gill@discreetmeds.com
On Thu, 11 Jan 2001, Gill Potter wrote:> I have a Unix server that has been connected to an NT box using smbmount for > quite some time. All of a sudden I am now getting: > > session request to [ip address] failed > I have rebooted the NT machine assuming that it was at fault, but I still > get the error. We have not made any changes to this system. Does anyone > have any suggestions? I had upgraded the smb clients to 2.0.7 about a month > or so ago, but it worked fine then.You mean that it still worked after upgrading? You write ip address and not a machine name, what does the command you use to mount look like? I am not sure what the purpose of session requests are, but they are done right after connecting before any authentication (login) or even protocol negotiation is done. It involves exchanging NetBios name information. More info can be found in "rfc1002.txt 4.3 and 4.3.2", maybe reading that will tell you something. Perhaps someone has renamed something ... ? You could try giving both an ipnumber and the name of the server in the mount command, like this: % mount -t smbfs -o username=foo,ip=1.2.3.4 //netbiosname/share /mnt/smb /Urban
I've been going through the DIAGNOSIS.txt file trying to figure out why my PCs are only seeing IPC$ on my Samba server, and I've reached an interesting problem. When running smbclient -L WWW (the name of the host) I get: added interface ip=209.190.205.236 bcast=209.190.205.255 nmask=255.255.255.0 added interface ip=192.168.2.69 bcast=192.168.2.255 nmask=255.255.255.0 session request to WWW failed (Not listening for calling name) session request to *SMBSERVER failed (Not listening for calling name) Smbd is definitely running, along with nmbd (I started both manually with the -D option). Why would it not be listening? Is this likely the cause of my IPC$ error? Thanks, Alex Le Fevre __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
Alex, It might be helpful to post your smb.conf file, along with your network setup for the machine you are running this on; it almost sounds like your WWW name is being resolved to an ip address where samba is not listening... Hope this helps, Don -----Original Message----- From: Alex Le Fevre [mailto:alexlefevre@yahoo.com] Sent: Monday, February 19, 2001 10:18 PM To: samba@lists.samba.org Subject: Session Request Failed I've been going through the DIAGNOSIS.txt file trying to figure out why my PCs are only seeing IPC$ on my Samba server, and I've reached an interesting problem. When running smbclient -L WWW (the name of the host) I get: added interface ip=209.190.205.236 bcast=209.190.205.255 nmask=255.255.255.0 added interface ip=192.168.2.69 bcast=192.168.2.255 nmask=255.255.255.0 session request to WWW failed (Not listening for calling name) session request to *SMBSERVER failed (Not listening for calling name) Smbd is definitely running, along with nmbd (I started both manually with the -D option). Why would it not be listening? Is this likely the cause of my IPC$ error? Thanks, Alex Le Fevre __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
Hi Alex, I think it may have to do with your hosts allow line; where you specify your 192 subnet, and your localhost subnet, but not the 209 subnet. From your hosts file, I would expect smbclient (and samba server) to resolve www to the 209 address, since it is the 1st entry in the hosts file that matches, and that host ip address is not going to be allowed as a client. To test this, temporarily remove your hosts allow line in smb.conf and restart samba and try again. Hope this helps, Don -----Original Message----- From: Alex Le Fevre [mailto:alexlefevre@yahoo.com] Sent: Tuesday, February 20, 2001 1:51 PM To: samba@lists.samba.org Subject: RE: Session Request Failed> It might be helpful to post your smb.conf file, > along with your network > setup for the machine you are running this onFair enough...I just didn't want to Spam the list unnecessarily. smb.conf ----------------------------------------------------- #======================= Global Settings ====================================[global] # workgroup = NT-Domain-Name or Workgroup-Name, eg: REDHAT4 workgroup = WORKGROUP # server string is the equivalent of the NT Description field server string = Web Server # This option is important for security. It allows you to restrict # connections to machines which are on your local network. The # following example restricts access to two C class networks and # the "loopback" interface. For more examples of the syntax see # the smb.conf man page hosts allow = 192.168.2. 127. # If you want to automatically load your printer list rather # than setting them up individually then you'll need this load printers = yes # you may wish to override the location of the printcap file ; printcap name = /etc/printcap # on SystemV system setting printcap name to lpstat should allow # you to automatically obtain a printer list from the SystemV spool # system ; printcap name = lpstat # It should not be necessary to specify the print system type unless # it is non-standard. Currently supported print systems include: # bsd, sysv, plp, lprng, aix, hpux, qnx ; printing = bsd # Uncomment this if you want a guest account, you must add this to /etc/passwd # otherwise the user "nobody" is used ; guest account = pcguest # this tells Samba to use a separate log file for each machine # that connects log file = /var/log/sambalog # Put a capping on the size of the log files (in Kb). max log size = 100 # Security mode. Most people will want user level security. See # security_level.txt for details. security = user # Use password server option only with security server ; password server = <NT-Server-Name> # You may wish to use password encryption. Please read # ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation. # Do not enable this option unless you have read those documents encrypt passwords = yes # Using the following line enables you to customise your configuration # on a per machine basis. The %m gets replaced with the netbios name # of the machine that is connecting ; include = /usr/local/samba/lib/smb.conf.%m # Most people will find that this option gives better performance. # See speed.txt and the manual pages for details socket options = TCP_NODELAY # Configure Samba to use multiple interfaces # If you have multiple network interfaces then you must list them # here. See the man page for details. ; interfaces = 192.168.12.2/24 192.168.13.2/24 # Browser Control Options: # set local master to no if you don't want Samba to become a master # browser on your network. Otherwise the normal election rules apply ; local master = no # OS Level determines the precedence of this server in master browser # elections. The default value should be reasonable ; os level = 33 # Domain Master specifies Samba to be the Domain Master Browser. This # allows Samba to collate browse lists between subnets. Don't use this # if you already have a Windows NT domain controller doing this job ; domain master = yes # Preferred Master causes Samba to force a local browser election on startup # and gives it a slightly higher chance of winning the election ; preferred master = yes # Use only if you have an NT server on your network that has been # configured at install time to be a primary domain controller. ; domain controller = <NT-Domain-Controller-SMBName> # Enable this if you want Samba to be a domain logon server for # Windows95 workstations. ; domain logons = yes # if you enable domain logons then you may want a per-machine or # per user logon script # run a specific logon batch file per workstation (machine) ; logon script = %m.bat # run a specific logon batch file per username ; logon script = %U.bat # Where to store roving profiles (only for Win95 and WinNT) # %L substitutes for this servers netbios name, %U is username # You must uncomment the [Profiles] share below ; logon path = \\%L\Profiles\%U # Windows Internet Name Serving Support Section: # WINS Support - Tells the NMBD component of Samba to enable it's WINS Server ; wins support = yes # WINS Server - Tells the NMBD components of Samba to be a WINS Client # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both ; wins server = w.x.y.z # WINS Proxy - Tells Samba to answer name resolution queries on # behalf of a non WINS capable client, for this to work there must be # at least one WINS Server on the network. The default is NO. ; wins proxy = yes # DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names # via DNS nslookups. The built-in default for versions 1.9.17 is yes, # this has been changed in version 1.9.18 to no. dns proxy = no #============================ Share Definitions =============================[homes] comment = Home Directories browseable = no writable = yes # NOTE: If you have a BSD-style print system there is no need to # specifically define each individual printer [printers] comment = All Printers path = /usr/spool/samba browseable = no # Set public = yes to allow user 'guest account' to print guest ok = no writable = no printable = yes [WebPages] comment = Web Page Directories path = /home/www public = yes writable = yes printable = no browseable = yes guest ok = yes Network Setup ----------------------------------------------------- Four Win98 PCs, IP's 192.168.2.1-4. Samba Server, OBSD 2.8, IP's 192.168.2.69, (external) /etc/hosts ----------------------------------------------------- 127.0.0.1 localhost 209.190.205.236 www.schnarff.com www 192.168.2.1 Holly 192.168.2.2 Alex 192.168.2.3 Linda 192.168.2.4 Glenn 192.168.2.69 www (I just added this line after realizing it could be part of the problem; I HUP'ed the smbd and nmbd daemons, but have not rebooted; still getting the same message) Thanks in advance for any help you can provide. Alex Le Fevre __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
> To test this, temporarily remove your hosts allow > line in smb.conf and > restart samba and try again.No such luck. Do you think that either: a) swapping around my /etc/hosts file to have the 192 entry for www first b) adding 209 to my hosts allow or c) rebooting to make sure /etc/hosts is actually being read properly would do the trick? Thanks again, Alex __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
Alex, I would vote for trying a) first, withOUT a hosts allow then try b. I can't imagine a situation where a change to /etc/hosts would require a reboot, though. One thing, I don't know the OS you are using at all, but are we sure the /etc/hosts file is what is resolving your names? on HP-UX there is a /etc/resolve.conf file that if it exists and has a dns server that is connectable, then the /etc/hosts file is not used, but instead the dns server is used. doing an nslookup on www should tell you whether the info is comming from etc/hosts or a dns server, as well as WHAT address the name www is being resolved to. Give that a shot, and I hope it helps! don -----Original Message----- From: Alex Le Fevre [mailto:alexlefevre@yahoo.com] Sent: Tuesday, February 20, 2001 4:26 PM To: samba@lists.samba.org Subject: RE: Session Request Failed> To test this, temporarily remove your hosts allow > line in smb.conf and > restart samba and try again.No such luck. Do you think that either: a) swapping around my /etc/hosts file to have the 192 entry for www first b) adding 209 to my hosts allow or c) rebooting to make sure /etc/hosts is actually being read properly would do the trick? Thanks again, Alex __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
I'm having a problem as I try to set up samba-2.0.3 for the first time. On my Linux machine (Red Hat 6.0), I have "smbd -D -d 2" running in the background. The installation is the default set up by the Red Hat rpm, except that I added the "-d 2" option to smbd. At this point, I'm just trying to get a list of available services from a Win98 machine that is set to allow printer sharing. The two machines are both on a Netgear hub. The Win98 machine is 192.168.0.2 and listed as "nancy" in my hosts file. When I run smbclient -d A -L nancy I get a "session request failed" message. The complete output is shown at the end of this post. According to the DIAGNOSIS.txt file provided with samba, this is a failure of TEST 3. The following additional info is probably relevant: Running "testparm smb.conf" turns up no errors. The settings include: hosts allow hosts deny bind interfaces only = No I tried hosts allow = 192.168.0. 127. which also failed. The Linux box and the Win98 machine can ping each other. My inetd.conf does not call smbd. The only one running is the one I started with "start /etc/rc.d/init.d/smb". There are no errors in the log.smb and log.nmb files. I'd be grateful for some ideas of what to try next. My ultimate goal is to access an HP DeskJet on the Windows machine from Linux. Thanks. ====== [output of smbclient -d A -L nancy] ================================= Added interface ip=192.168.0.3 bcast=192.168.0.255 nmask=255.255.255.0 Client started (version 2.0.3). resolve_name: Attempting lmhosts lookup for name nancy<0x20> getlmhostsent: lmhost entry: 127.0.0.1 localhost resolve_name: Attempting host lookup for name nancy<0x20> Connecting to 192.168.0.2 at port 139 write_socket(3,76) write_socket(3,76) wrote 76 Sent session request got smb length of 1 size=1 smb_com=0x0 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=0 smb_flg2=0 smb_tid=0 smb_pid=0 smb_uid=0 smb_mid=0 smt_wct=0 smb_bcc=0 session request to NANCY failed resolve_name: Attempting lmhosts lookup for name nancy<0x20> getlmhostsent: lmhost entry: 127.0.0.1 localhost resolve_name: Attempting host lookup for name nancy<0x20> Connecting to 192.168.0.2 at port 139 write_socket(3,76) write_socket(3,76) wrote 76 Sent session request got smb length of 1 size=1 smb_com=0x0 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=0 smb_flg2=0 smb_tid=0 smb_pid=0 smb_uid=0 smb_mid=0 smt_wct=0 smb_bcc=0 session request to *SMBSERVER failed
Having read the man pages and faqs, I posted a question last week to both comp.protocols.smb and this mail list. (I am using the same Subject header I used last week.) I got no response, so let me try to simplify the question. I am trying to use samba-2.0.3 to get from my Linux machine to a Win98 machine. When I run "smbclient -L" and get a "session request failed" message, is the problem confined to the Samba installation on my Linux machine, or can this also happen because the Win98 machine is denying permissions? As I mentioned in the original post, there are no testparm or logfile errors, and the two machines can ping each other. Thanks.
On Mon, 9 Apr 2001 14:15:11 -0400, you wrote:>I am trying to use samba-2.0.3 to get from my Linux machine to a Win98 >machine. When I run "smbclient -L" and get a "session request failed"Go to the win98, dos box and issue nbtstat -n it should output at least 2 rows for the workgroup. -- giulioo@pobox.com
I had some similar problems. I upgraded samba to 2.0.7 (latest as of this writing), but the thing that solved this problem was upgrading my kernel from the 2.2.14 that come with RH 6.2 to 2.2.18. Try that and see if it addresses your problem. -Eric. Steve Kleene: [Monday 9-April]:> Having read the man pages and faqs, I posted a question last week to both > comp.protocols.smb and this mail list. (I am using the same Subject header I > used last week.) I got no response, so let me try to simplify the question. > > I am trying to use samba-2.0.3 to get from my Linux machine to a Win98 > machine. When I run "smbclient -L" and get a "session request failed" > message, is the problem confined to the Samba installation on my Linux > machine, or can this also happen because the Win98 machine is denying > permissions? As I mentioned in the original post, there are no testparm or > logfile errors, and the two machines can ping each other. > > Thanks. > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba-- Eric Berg Director of Techology Tribal DDB New York 488 Madison, 21st Floor New York, NY 10022 eberg@tribalddb.com tel: 212-515-8377 fax: 212-515-8677 cell: 646-418-3608 www.tribalddb.com
192.168.0.1 is the server, is PANZ 192.168.0.2 is a win98 client, is BEPP till some days ago all went well so i don't know how could cause this problem: $ smbclient -L 192.168.0.2 SSL: Error error setting CA cert locations: error:00000000:lib(0):func(0):reason(0) trying default locations. added interface ip=192.168.0.1 bcast=192.168.0.255 nmask=255.255.255.0 session request to 192.168.0.2 failed (Called name not present) session request to 192 failed (Called name not present) session request to *SMBSERVER failed (Called name not present) but: $ smbclient -L 192.168.0.1 SSL: Error error setting CA cert locations: error:00000000:lib(0):func(0):reason(0) trying default locations. added interface ip=192.168.0.1 bcast=192.168.0.255 nmask=255.255.255.0 Got a positive name query response from 127.0.0.1 ( 192.168.0.1 ) Passoword: Anonymous login successful Domain=[WORKGROUP] OS=[Unix] Server=[Samba 2.2.0a] Sharename Type Comment --------- ---- ------- epson Printer Epson EPL-5700 IPC$ IPC IPC Service (Samba 2.2.0a) ADMIN$ Disk IPC Service (Samba 2.2.0a) Server Comment --------- ------- BEPP PANZ Samba 2.2.0a Workgroup Master --------- ------- WORKGROUP PANZ my smb.conf: [global] workgroup = WORKGROUP printing = bsd printcap name = /etc/printcap load printers = yes guest account = sappe log file = /usr/local/samba/log.%m name resolve order = wins lmhosts bcast wins support = yes dns proxy = no preferred master = yes [homes] comment = Home Directories browseable = no read only = yes create mode = 0750 [epson] comment = Epson EPL-5700 printable = yes ; browsable = no ; public = yes ; writable = no ; create mode = 0700 printer = epson print command = /usr/bin/lpr -r %s printing = bsd path = /var/spool/public guest ok = yes guest account = sappe bye -- "The erroneous idea that Ibid is the author of the Lives is so frequently met with, even among those pretending to a degree of culture, that it is worth correcting. Ibid's masterpiece, on the other hand, was the famous Op. Cit." HP Lovecraft, Ibid
On Mon, Jul 08, 2002 at 09:48:24PM +0200, onofrio panzarino wrote:> []i solved the problem. excuse me, it was really trivial. bye -- Onofrio Panzarino, Ancona, Italy That is not dead which can eternal lie, And with strange aeons even death may die.