Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Newbie: Inetd keeps failing... SWAT/localhost:901 > no connection

0 views
Skip to first unread message

Dekkers Intermediair

unread,
Jun 19, 2002, 10:59:09 AM6/19/02
to
Hi all,

Being a newbie I probably are overlooking something, but this is my problem:

SUSE 7.1 installed without SAMBA, because I want to use SAMBA 2.2.4.

So I downloaded 2.2.4 from www.samba.org, unzipped it, untarred it, ran
./configure, ran make, ran make install, added swat 901/tcp to /etc/services
and swat stream tcp nowait.400 root /usr/local/samba/bin/swat swat to
/etc/inetd.conf and rebooted.

Now when I boot I get the message inetd failed, but when I start inetd after
placing a # befor the "swat stream .... swat" line, inetd will start.

I installed SAMBA 2.2.4 default, thus in /usr/local/samba
when I try to execute smbpasswd in /usr/local/samba/bin it says: 'command
not found', but when I copy smbpasswd to /usr/bin/ and execute it there it
runs without problems.

So my questions:
1. Has anybody have any idea why none of the executable files in
/usr/local/samba/bin/ will run (all exec. are -rwxr-xr-x)?
2. Or what else do I do wrong?

Thanks in Advance!!!

Dimitry Schoenmakers
The Netherlands

P.s. When this works... is there somebody interested to help me through the
process to installing Samba TNG along Samba 2.2.4? :-) (Want to have full
PDC and filesharing capabilities :-))


Andrew Williams

unread,
Jun 19, 2002, 2:57:20 PM6/19/02
to

I also use SuSE, this page http://home.arcor.de/36bit/samba.html#2.5.1
says how I do it. SuSE 7.1 had smb.conf in /etc/, starting at 7.3 them
moved it to /etc/samba/ so you will have to modify things accordingly if
you want the config back in /etc/.

As to TNG and PDC stuff, no idea.

Andrew Williams, Germany

--
opinions personal, facts suspect.
http://home.arcor.de/36bit/samba.html

Robert M. Stockmann

unread,
Jun 20, 2002, 9:31:02 PM6/20/02
to

As a rule, i always stay away from swat. IMHO swat is a pain
in the ass. Just start with a simple working smb.conf template
and make additions/changes. then check with testparm to
see which parts are failing.
here's my smb.conf which is a samba PDC and also can do
windows XP clients:

# 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
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.
#
#======================= Global Settings =====================================
[global]

netbios name = HUBBLE
workgroup = STOKKIE

comment = STOKKIE Samba Domain Controller

os level = 64
preferred master = yes
domain master = yes
local master = yes

; if you want to automatically load your printer list rather
; than setting them up individually then you'll need this
printcap name = /etc/printcap
load printers = yes
; It should not be necessary to spell out the print system type unless
; yours is non-standard. Currently supported print systems include:
; bsd, sysv, plp, lprng, aix, hpux, qnx
printing = bsd
; members of the ntadmin group should be able
; to add drivers and set printer properties
; root is implicitly a 'printer admin'
printer admin = @ntadmin


; this tells Samba to use a separate log file for each machine
; that connects
log file = /var/log/samba/log.%m

; security settings (must user security = user)
security = user
add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u
domain admin group = root @wheel
domain guest group = nobody @guest

; encrypted passwords are a requirement for a PDC
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd

; support domain logons
domain logons = yes

; where to store user profiles?
; logon path = \\%N\profiles\%u

; where is a user's home directory and where should it
; be mounted at?
logon drive = H:
logon home = \\homeserver\%u

; specify a generic logon script for all users
; this is a relative **DOS** path to the [netlogon] share
logon script = logon.cmd

; Unix users can map to different SMB User names
username map = /etc/samba/smbusers


; Most people will find that this option gives better performance.
; See speed.txt and the manual pages for details
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

; 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.1. 192.168.2. 127.

; 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
interfaces = lo eth0
bind interfaces only = true

; Configure remote browse list synchronisation here
; request announcement to, or browse list sync from:
; a specific host or from / to a whole subnet (see below)
; remote browse sync = 192.168.3.25 192.168.5.255

; Cause this host to announce itself to local subnets here
; remote announce = 192.168.1.255 192.168.2.44

wins support = yes
; wins server = w.x.y.z
; name resolve order = wins lmhosts bcast

; 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 ==============================
; necessary share for domain controller
[netlogon]
comment = Network Logon Service
path = /home/netlogon
writeable = no
write list = ntadmin

; share for storing user profiles
[profiles]
path = /home/profiles
writeable = yes
create mask = 0600
directory mask = 0700

[print$]
path = /home/printers
guest ok = yes
browseable = yes
read only = yes
; since this share is configured as read only, then we need
; a 'write list'. Check the file system permissions to make
; sure this account can copy files to the share. If this
; is setup to a non-root account, then it should also exist
; as a 'printer admin'
write list = @ntadmin,root

[homes]
comment = Home Directories
browseable = no
writable = yes

[printers]
comment = All Printers
path = /var/spool/samba
printable = yes
public = yes
writable = no
create mode = 0700

[dat]
comment = Backup Stuff
path = /mnt/data1
public = yes
writable = yes
printable = no
write list = @staff

Also check the HTML documents inside the samba source tarball.
usefull ones are :

docs/htmldocs/Samba-PDC-HOWTO.html ,
docs/htmldocs/printer_driver2.html ,
docs/htmldocs/Samba-BDC-HOWTO.html ,
docs/htmldocs/Samba-HOWTO-Collection.html

also checkout :

docs/Registry :
NT4-Locking.reg Win95_PlainPassword.reg WindowsTerminalServer.reg
NT4_PlainPassword.reg Win98_PlainPassword.reg WinME_PlainPassword.reg
Win2000_PlainPassword.reg Win9X-CacheHandling.reg WinXP_SignOrSeal.reg

The WinXP_SignOrSeal.reg key is needed to be able to join with XP to the
samba DOMAIN.
---
Robert M. Stockmann - RHCE
Network Engineer - UNIX Consultant
crashrecovery.org st...@stokkie.net

0 new messages