Solved

Broken pipes reported by smbclient

Posted on 2000-04-28
12
615 Views
Last Modified: 2008-03-04
I followed Orielly's online Samba troubleshooting guide until I reached section 9.2.5.2.

I get the following errors about broken pipes:

linuxbox:/# smbclient -L localhost -U%
Added interface ip=10.0.0.69 bcast=10.0.0.255 nmask=255.255.255.0
read_socket_with_timeout: timeout read. read error = Broken pipe.
session request to LOCALHOST failed
read_socket_with_timeout: timeout read. read error = Broken pipe.
session request to *SMBSERVER failed

The Orielly guide does NOT give this as one of the possible errors that this command can give, so I'm a bit stumped as to where to turn next.  Up until this test, the computer in question passes all the others perfectly.  Telnet and ftp to the computer work perfectly.

Any ideas on how to fix the pipes?
0
Comment
Question by:magarity
  • 6
  • 6
12 Comments
 
LVL 40

Expert Comment

by:jlevie
Comment Utility
Have you configured Samba and is it running? You can check for the existance of the Samba daemons with "ps -ef | grep mbd | grep -v grep", which should return something like:

root      1380     1  0 Apr28 ?        00:00:02 bin/nmbd
root      1382     1  0 Apr28 ?        00:00:00 bin/smbd

if both daemons are running.
0
 
LVL 13

Author Comment

by:magarity
Comment Utility
jlevie,
Yes, I get the following when trying that command:

root       104     1  0 22:34 ? 00:00:00 usr/sbin/smbd -D
root       106     1  0 22:34 ? 00:00:00 usr/sbin/nmbd -D              

also, 'netstat -a' lists the apropriate ports are ready to recieve.
0
 
LVL 40

Expert Comment

by:jlevie
Comment Utility
Could I see what's in /etc/hosts?
0
 
LVL 13

Author Comment

by:magarity
Comment Utility
jlevie,
sure, here is everthing that isn't a comment:

127.0.0.1       localhost
10.0.0.69               littleboy.house.net littleboy
10.0.0.1 jevex
10.0.0.4 zorac
10.0.0.10 sarah                    

where 'littleboy' is the linux computer in question.
0
 
LVL 40

Expert Comment

by:jlevie
Comment Utility
Well it's not going to be any of the simple things, your hosts file looks fine.

You should have testparm somewhere on the system. If you haven't already, it would be good to run it and see if it likes your smb.conf file. If there's nothing remarkable in the testparm output, try stopping and restarting Samba to make sure that it's using the current smb.conf data. If it still doesn't work, you can send me your smb.conf file (jlevie@bellsouth.net) and I'll see if I can spot what's wrong.
0
 
LVL 13

Author Comment

by:magarity
Comment Utility
testparm says that the configuration is loaded correctly.

restarting the system, which I assume restarts samba with the current smb.conf file, does not help.

here's the very simple smb.conf file:

[global]
workgroup = colorado
security = user
browsable = yes
local master = yes
log level = 1
log file = /sambalog.log
[homes]
guest ok = no
browsable = no
[storage]
path = /usr/storage
public = yes

I even tried recompiling the kernel again just to make sure that the smb fs was properly inserted.
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 13

Author Comment

by:magarity
Comment Utility
Here is the log file after deleting the one that was there and rebooting.  The first entry is before running "smbclient -L localhost -U%" and the others were added after that.

[2000/04/29 18:20:44, 1] smbd/files.c:file_init(216) file_init: Information only: requested 10000 open files, 1014 are available.

[2000/04/29 18:22:23, 0] locking/shmem_sysv.c:sysv_shm_open(563)
  Can't create or use semaphore [1]. Error was Function not implemented

[2000/04/29 18:22:23, 0] locking/locking.c:locking_init(174)
  ERROR: Failed to initialise share modes

[2000/04/29 18:22:24, 0] locking/shmem_sysv.c:sysv_shm_open(563)
  Can't create or use semaphore [1]. Error was Function not implemented

[2000/04/29 18:22:24, 0] locking/locking.c:locking_init(174)
  ERROR: Failed to initialise share modes
0
 
LVL 40

Accepted Solution

by:
jlevie earned 100 total points
Comment Utility
Well, there's what's wrong. Which Linux are you on and if you've compiled a new kernel does it have the System V IPC options enabled (in the General setup section of xconfig)?
0
 
LVL 13

Author Comment

by:magarity
Comment Utility
slackware 7

no, i have not put in the system v ipc since the help on that says its particularly for dosemu, which i don't want.

i take it i should have that in there, so i'm running a recompile now and will report back later.  (its a 3 hour job on the machine in question, hah hah)

what tipped you off that i needed it?
0
 
LVL 40

Expert Comment

by:jlevie
Comment Utility
Because the log file had:

2000/04/29 18:22:23, 0] locking/shmem_sysv.c:sysv_shm_open(563)
                         Can't create or use semaphore [1]. Error was Function not implemented

and semaphores and shared memory are a part of the SysV IPC.

The kernel notes can only tell you about things that the kernel know it needs for something else. There's no way that it could know that you intend to load some application (like Samba, MySQL, or Postgres, etc) that also requires that option. Hopefully it will only be the SysV IPC that's missing and Samba will work when the new kernel is in place.
0
 
LVL 13

Author Comment

by:magarity
Comment Utility
Hurrah, I never would have guessed that this was the cause of my troubles but not compiling in system v ipc was what was missing.
0
 
LVL 40

Expert Comment

by:jlevie
Comment Utility
Great, I'm glad its working now.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This video discusses moving either the default database or any database to a new volume.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now