Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Oct 2000 23:13:12 -0600
From:      "Breen Ouellette" <the.man@breeno.net>
To:        <questions@freebsd.org>
Subject:   Samba semaphore timeout problems
Message-ID:  <001201c03e42$58517170$050210ac@tao>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hi,

    I am currently getting semaphore timeout messages when my Windows based clients try to access Samba (2.0.7) on the FreeBSD box (4.1).  Is it possible that my smb.conf is causing this?  I will include it below.  Also, one of the shares is pointing to a ccd virtual disk which consists of two 15GB partitions.  Could this be causing problems?  I will include my cdd.conf in this message as well.  

    This behavior is erratic.  Sometimes machines log in just fine, other times no go.  A machine may access the shares fine with one user, and if someone else logs in two minutes later from the same machine they cannot access the Samba shares.  Usually, if a user cannot get to the Samba shares, they can go read a share on a different machine, then come back to the Samba machine and get in just fine.  It is really annoying, however, especially waiting for mapped drives to time out when logging in.

    I didn't experience these problems in 4.0 with Samba 2.0.6, but my smb.conf has changed since then, plus I wasn't using ccd then.  If I have to, I will return to 4.0/2.0.6, but this seems like backtracking, which I don't like to do.

--smb.conf:
[global]
 #Server setup
 encrypt passwords = yes
 local master = no
 netbios name = JEEVES
 server string =
 workgroup = BREENO

 #Network configuration
 allow hosts = 172.16.2. localhost

 #Global share values
 browseable = no
 guest account = nobody
 guest ok = yes
 guest only = yes
 hide dot files = yes
 invalid users = root
 map to guest = Bad User
 security = user
 writeable = no

 #Logging options
 debug timestamp = yes
 log level = 2
 log file = /var/log/samba.log.%m
 max log size = 50

[homes]
 comment = %U's home folder
 guest ok = no
 guest only = no
 inherit permissions = yes
 valid users = lex
 writeable = yes

[Music]
 browseable = yes
 comment = Music folder
 path = /export/music

[Upload]
 browseable = yes
 comment = Upload folder
 inherit permissions = yes
 path = /export/upload
 writeable = yes

[Optra]
 browseable = yes
 comment = Lexmark Optra E310 printer
 path = /var/spool/samba
 print command = /usr/bin/lpr -r %s
 printable = yes
 printer = lp
 printing = BSD
--EOF

--ccd.conf:
#
# /etc/ccd.conf
#

# ccd ileave flags compnent devices
ccd0 0 none /dev/ad0s2e /dev/ad3s2e
--EOF

    Thanks in advance for any help.

    -Breen Ouellette

[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4207.2601" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; I am currently getting semaphore 
timeout messages when my Windows based clients try to access Samba (2.0.7) on 
the FreeBSD box (4.1).&nbsp; Is it possible that my smb.conf is causing 
this?&nbsp; I will include it below.&nbsp; Also, one of the shares is pointing 
to a ccd virtual disk which consists of two 15GB partitions.&nbsp; Could this be 
causing problems?&nbsp; I will include my cdd.conf in this&nbsp;message as 
well.&nbsp; </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; This behavior is erratic.&nbsp; 
Sometimes machines log in just fine, other times no go.&nbsp; A machine may 
access the shares fine with one user, and if someone else logs in two minutes 
later from the same machine they cannot access the Samba shares.&nbsp; Usually, 
if a user cannot get to the Samba shares, they can go read a share on a 
different machine, then come back to the Samba machine and get in just 
fine.&nbsp; It is really annoying, however, especially waiting for mapped drives 
to time out when logging in.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; I didn't experience these 
problems in 4.0 with Samba 2.0.6, but my smb.conf has changed since then, plus I 
wasn't using ccd then.&nbsp; If I have to, I will return to 4.0/2.0.6, but this 
seems like backtracking, which I don't like to do.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>--smb.conf:</FONT></DIV>
<DIV><FONT face=Arial size=2>[global]<BR>&nbsp;#Server setup<BR>&nbsp;encrypt 
passwords = yes<BR>&nbsp;local master = no<BR>&nbsp;netbios name = 
JEEVES<BR>&nbsp;server string =<BR>&nbsp;workgroup = BREENO</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;#Network configuration<BR>&nbsp;allow hosts = 
172.16.2. localhost</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;#Global share values<BR>&nbsp;browseable = 
no<BR>&nbsp;guest account = nobody<BR>&nbsp;guest ok = yes<BR>&nbsp;guest only = 
yes<BR>&nbsp;hide dot files = yes<BR>&nbsp;invalid users = root<BR>&nbsp;map to 
guest = Bad User<BR>&nbsp;security = user<BR>&nbsp;writeable = no</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;#Logging options<BR>&nbsp;debug timestamp = 
yes<BR>&nbsp;log level = 2<BR>&nbsp;log file = 
/var/log/samba.log.%m<BR>&nbsp;max log size = 50</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>[homes]<BR>&nbsp;comment = %U's home 
folder<BR>&nbsp;guest ok = no<BR>&nbsp;guest only = no<BR>&nbsp;inherit 
permissions = yes<BR>&nbsp;valid users = lex<BR>&nbsp;writeable = 
yes</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>[Music]<BR>&nbsp;browseable = yes<BR>&nbsp;comment 
= Music folder<BR>&nbsp;path = /export/music</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>[Upload]<BR>&nbsp;browseable = yes<BR>&nbsp;comment 
= Upload folder<BR>&nbsp;inherit permissions = yes<BR>&nbsp;path = 
/export/upload<BR>&nbsp;writeable = yes</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>[Optra]<BR>&nbsp;browseable = yes<BR>&nbsp;comment 
= Lexmark Optra E310 printer<BR>&nbsp;path = /var/spool/samba<BR>&nbsp;print 
command = /usr/bin/lpr -r %s<BR>&nbsp;printable = yes<BR>&nbsp;printer = 
lp<BR>&nbsp;printing = BSD<BR></FONT><FONT face=Arial size=2>--EOF</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>--ccd.conf:</FONT></DIV>
<DIV><FONT face=Arial size=2>#<BR># /etc/ccd.conf<BR>#</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2># ccd&nbsp;ileave&nbsp;flags&nbsp;compnent 
devices<BR>ccd0&nbsp;0&nbsp;none&nbsp;/dev/ad0s2e 
/dev/ad3s2e<BR>--EOF</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; Thanks in advance for any 
help.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; -Breen 
Ouellette</FONT></DIV></BODY></HTML>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001201c03e42$58517170$050210ac>