No subject

Mon Dec 1 11:34:25 GMT 2003


If you get a "connection refused" response then the smbd server may
not be running. If you installed it in inetd.conf then you probably
that file incorrectly. If you installed it as a daemon then check
it is running, and check that the netbios-ssn port is in a LISTEN
state using "netstat -a".
Note: You have xinetd not inetd on the redhat box. To avoid all that
nonsense, start samba as a daemon.

On Mon, Sep 10, 2001 at 06:38:23PM -0700, Adam Browning wrote:
> Hi, I'm new to this list and pretty new to Samba.  I'm running Samba 2.2.1a
> on RedHat 7.1 and I'm having problems connecting to myself.  If I use the
> command
> # smbclient -L Earth	(Earth is my main Win2k computer)
> I get asked for a password, which I just hit enter at, which gives me the
> basic output from a list on smbclient, just minus the Sharenames.
> But if I use the command
> # smbclient -L Mars	(Mars is my Linux box with Samba)
> It says "Connection to Mars failed".
> So, why can I connect to other computers but not to myself?  I think this is
> the main reason why none of my other computers can connect or even list the
> shares on my Samba server.  Any help would be appreciated.
> Adam
> _________________________________________________________
> Do You Yahoo!?
> Get your free address at
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:

Return-Path: <randy.baker at>
Delivered-To: samba at
Received: from (
  []) by (Postfix) with ESMTP id 137995524
  for <samba at>; Mon, 10 Sep 2001 19:46:49 -0700 (PDT)
Received: from corinth ([]) by
  (InterMail vM. 201-229-121-116-20010115) with SMTP id
  < at corinth> for
  <samba at>; Mon, 10 Sep 2001 22:50:41 -0400
Message-ID: <008a01c13a6c$8bb74f90$0292d8cd at corinth>
From: "Randy Baker" <randy.baker at>
To: <samba at>
Subject: Samba PDC and Win 95 client question.
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Mailer: Microsoft Outlook Express 5.50.4522.1200
X-Converted-To-Plain-Text: from multipart/alternative by demime 0.98b
X-Converted-To-Plain-Text: Alternative section used was text/plain
Sender: samba-admin at
Errors-To: samba-admin at
X-BeenThere: samba at
X-Mailman-Version: 2.0.6
Precedence: bulk
List-Help: <mailto:samba-request at>
List-Post: <mailto:samba at>
List-Subscribe: <>,
	<mailto:samba-request at>
List-Id: General questions regarding Samba <>
List-Unsubscribe: <>,
	<mailto:samba-request at>
List-Archive: <>
Date: Mon Sep 10 19:47:09 2001
X-Original-Date: Mon, 10 Sep 2001 22:50:41 -0400


I am volunteering to set up a SAMBA 2.2.1 server on a Slackware 8 system for a
local primary school.  I have some UNIX/Linux experience, and NT/ 2000 Pro
experience. Very little Win 95 experience.  SAMBA has not been recompiled on
this system, I am using the binaries that already existed in the Slackware 8
distribution.  All workstations are running Win 95, and roaming profiles are
stored on the SAMBA server.  The SAMBA server is still being configured, and I
have a few problems I hope someone can help out with.  While I am volunteering
my spare time, the school year has started and it would be of benefit if I can
fast track on a few things here.

A couple of questions on Samba and Win 95...

(1)  It is currently desired to have everyone authenticate through the SAMBA
server before gaining access to Win 95.  However, the student can click the
"Cancel" button on the logon screen and still access the Win 95 system and
access the Internet.  Is there any way to eliminate the cancel button?

(2)  Occassionally, the test student account will pop up "access denied" type
errors upon logging out.  Typically, it complains that it cannot access a
locked resource, usually the "Cookie" folder.  During testing, I had rarely
used a web browser.  Eventually, the problem went away, but essentially, so
did the customized user profile.  All files are still in the [Profiles] share,
but things like the background return to the default value.

(3) If I am logged into the Domain on the Win 95 system, when I install
software, it is not accessible to everyone as the start menu gets customized
only for the currently logged in user.  The software is of course installed,
but I can't find where I need set things up so that all users see the new
installed software.

(4) I am also about to set up a second Slackware 8 system with SAMBA 2.2.1 for
the school, but I am unclear if I can force the second system to authenticate
against the first with the password server = <SAMBA-Server-Name>

(5) I have on occassion had difficulties saving files on the SAMBA server from
the Win 95 workstation.  I can see the shares, and I can copy files in and out
of the SAMBA share.  However, if I download a WinZipped file using Internet
Explorer on the Win 95 machine and store the http downloaded file into a SAMBA
share, the WinZipped file is typically, if not always corrupted.  Download the
same file using the same method to the Win 95 PC, everything is fine.

I have a few other hiccups happening, but I have some additional reading to do
that will probably clear things up.  I am hoping someone has some insight or
wisdom into these three problems to help me along, or point me in the right

Thank you.
Randy Baker

---------- /etc/samba/smb.conf ------------
This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not many any basic syntactic errors.
#======================= Global Settings
workgroup = OCS
server string = Samba Server
hosts allow = 205.216.146. 127.
preserve case = yes
# short case preserve = yes
case sensitive = no
# 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
# 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/samba.%m
# Put a capping on the size of the log files (in Kb).
max log size = 50
# Security mode. Most people will want user level security. See
# security_level.txt for details. NOTE: To get the behaviour of
# Samba-1.9.18, you'll need to use "security = share".
security = user
# Use password server option only with security = server
# The argument list may include:
# password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
# or to auto-locate the domain controller/s
# password server = *
; password server = <NT-Server-Name>
# Note: Do NOT use the now deprecated option of "domain controller"
# This option is no longer implemented.
# 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
# Where to find the SSL certificates:
ssl CA certDir = /etc/ssl/certs
# 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
# You may want to add the following on a Linux system:
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 =
# Browser Control Options:
os level = 64
preferred master = yes
domain master = yes
local master = yes
# Enable this if you want Samba to be a domain logon server for
# Windows95 workstations.
domain logons = yes
# 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 drive = F:
logon script = logon.bat
logon path = \\%L\Profiles\%U
logon home = \\%L\%U\.profiles\
# 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
comment = Home Directories
browseable = no
writable = yes
comment = Ghost Images
browseable = yes
writable = yes
path = /home/ghost
guest ok = no
# Un-comment the following and create the netlogon directory for Domain
comment = Network Logon Service
path =/usr/local/samba/lib/netlogon
guest ok = yes
writable = no
share modes = no
write list = ntadmin
# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
# path = /usr/local/samba/profiles
path = /home/%U
writeable = yes
create mask = 0600
directory mask = 0700
browseable = no
guest ok = yes
path = /home/shared
writeable = no
create mask = 0600
directory mask = 0700
browseable = yes
guest ok = yes

# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
writable = no
printable = yes

Return-Path: <simon at>
Delivered-To: samba at
Received: from (unknown []) by (Postfix) with SMTP id AAFC55546 for
  <samba at>; Mon, 10 Sep 2001 19:50:10 -0700 (PDT)
Received: (qmail 13623 invoked by uid 505); 11 Sep 2001 02:54:02 -0000
Received: from simon at by mail with qmail-scanner-0.94 (.
  Clean. Processed in 0.157632 secs); 11/09/2001 14:54:02
X-Qmail-Scanner-Mail-From: simon at via mail
X-Qmail-Scanner-Rcpt-To: abartlet at samba at
X-Qmail-Scanner: 0.94 (No viruses found. Processed in 0.158927 secs)
Received: from (HELO
  ( by with SMTP; 11 Sep 2001 02:54:02
Message-ID: <3B9D7C22.5030902 at>
From: Simon Travers-Jones <simon at>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3)
X-Accept-Language: en-us
MIME-Version: 1.0
To: abartlet at, samba at
Subject: Re: Fwd: cvs_head and winbind problems (possible bug)
References: <3B8D8131.9090302 at>
  <3B9573B8.9050801 at>	<3B97FBB7.6050807 at>
  <15256.18924.161574.562053 at>
  <3B98AF60.D62B9718 at>
  <15257.25275.805495.672648 at>
  <3B999958.3047DC64 at>
  <15257.41741.609956.638115 at>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: samba-admin at
Errors-To: samba-admin at
X-BeenThere: samba at
X-Mailman-Version: 2.0.6
Precedence: bulk
List-Help: <mailto:samba-request at>
List-Post: <mailto:samba at>
List-Subscribe: <>,
	<mailto:samba-request at>
List-Id: General questions regarding Samba <>
List-Unsubscribe: <>,
	<mailto:samba-request at>
List-Archive: <>
Date: Mon Sep 10 19:51:04 2001
X-Original-Date: Tue, 11 Sep 2001 14:51:14 +1200

ignore my last patch - this is much simpler (and probably in a much 
better place).

Index: reply.c
RCS file: /cvsroot/samba/source/smbd/reply.c,v
retrieving revision 1.331
diff -u -r1.331 reply.c
--- reply.c    8 Sep 2001 02:59:23 -0000    1.331
+++ reply.c    11 Sep 2001 02:45:02 -0000
@@ -776,7 +776,8 @@
   if (!guest) {
-      valid_password = NT_STATUS_IS_OK(pass_check_smb(user, domain,
+// stj
+       valid_password = NT_STATUS_IS_OK(pass_check_smb(orig_user, domain,
                               (unsigned char *)smb_apasswd,
                               (unsigned char *)smb_ntpasswd,

Tim Potter wrote:

>Andrew Bartlett writes:
>>>It seems a bit confusing at the moment with request_username and
>>>smb_username kind of meaning the same thing.
>>Thanks.  I've got a funny feeling thats how I intended it to work in the
>>first place :-).
>Thought so.  It's a bit tricky until you have fixed bugs in that
>area of the code.  (-:
>>In any case a lot of this stuff will move around a bit as the
>>authenticaion subsystem starts passing back info - like the
>>unix_username they got and everything they need for a vuser token.  
>>With that change I'll internalise all this behind the interface.
>>I'll have a look at all of this when I've got a little less on my plate.
>OK - I'll send you any patches if I get around to it over the
>next couple of days.


Simon Travers-Jones
Network Engineer
Compudigm International Ltd.
PH: +64 4 4999 881
FX: +64 4 4999 853
CL: +64 21 499 065

*This email and any attachments are confidential and may be legally
*You must scan this email and any attachments for viruses.  Compudigm
International Limited accepts no liability for any loss, damage or
consequence, whether caused by our own negligence or not, resulting
directly or indirectly from the use of this email and any attachments.
*If you are not a named addressee or if you have received this email in
error, you must notify us immediately.  You must also delete the email
and any attachments, and you must not use, copy or disclose them.

Return-Path: <demonk1999 at>
Delivered-To: samba at
Received: from (
  []) by (Postfix) with SMTP id 3679953F9
  for <samba at>; Mon, 10 Sep 2001 20:34:31 -0700 (PDT)
Received: from (HELO earth)
  ( by with SMTP; 11 Sep 2001
  03:38:25 -0000
X-Apparently-From: <demonk1999 at>
From: "Adam Browning" <demonk1999 at>
To: <samba at>
Subject: RE: Trouble with Name resolution
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
In-Reply-To: <20010910224940.B27825 at>
Sender: samba-admin at
Errors-To: samba-admin at
X-BeenThere: samba at
X-Mailman-Version: 2.0.6
Precedence: bulk
List-Help: <mailto:samba-request at>
List-Post: <mailto:samba at>
List-Subscribe: <>,
	<mailto:samba-request at>
List-Id: General questions regarding Samba <>
List-Unsubscribe: <>,
	<mailto:samba-request at>
List-Archive: <>
Date: Mon Sep 10 20:35:03 2001
X-Original-Date: Mon, 10 Sep 2001 20:38:08 -0700

Thanks for the response, but the problem isn't a "Connection refused".  It
is a "connection failed".

If I run the nmblookup program as

# nmblookup Earth

I get the correct IP address for the computer Earth.  But if I run

# nmblookup Mars

I get a "name_query failed to find name Mars".  I can connect to my other
Win98 computers with my Linux box Mars and look at their shares just fine,
and I'm sure that the smbd and nmbd daemons are running correctly.

Any other ideas?

-----Original Message-----
From: samba-admin at [mailto:samba-admin at]On
Behalf Of Joel Hammer
Sent: Monday, September 10, 2001 7:50 PM
To: samba at
Subject: Re: Trouble with Name resolution

More information about the samba mailing list