Click to See Complete Forum and Search --> : Samba Swat


Linux
12-02-2000, 03:21 AM
I can not acces port 901 for easy configuration using Swat. I think that my problem is when I run:
swat stream tcp nowait.400 root /usr/sbin/swat swat

It just hangs ( gives me second prompt and waits)

Can this be fixed??

ThanX

darkrose
12-02-2000, 03:27 AM
I had the same problem, I just used the sample config file from the NHF (http://www.linuxnewbie.org/nhf/intel/network/samba/samba2.html)..

I was getting "broken pipe" locally, and "connection reset by peer" on my win2k box (both using Netscape)..So I used the file above, modifying it to my needs (changing computer names and ip addresses) and it works fine...

I think the reason it didn't work for me is because I'm using Redhat 7, which uses xinetd, and I couldn't figure out how to get swat working that way, even after running through the faqs on the RH site...

~DR~

Linux
12-02-2000, 11:56 AM
I use RH 7 also. Can you please copy and paste lines that you have put in xinetd. Right now this is in /etc/xinetd :

#
# Simple configuration fi
#
# Some defaults, and incl

defaults
{
instances = 60
log_type = SYSLOG authpri
log_on_success = HOST PID
log_on_failure = HOST RECORD
}

includedir /etc/xinetd.d

and

/etc/services contain swat 901/tcp

I am not sure what to put into xinetd as you said that RH 7 is using??

ThanX

[This message has been edited by Linux (edited 02 December 2000).]

darkrose
12-02-2000, 03:01 PM
I didn't use the part in the NHF that talked about using xinetd...All SWAT does anyways is configure the /etc/smb.conf file (from what I gather), so open it up and edit this to your liking:

# Global parameters
workgroup = *YOUR WINDOWS WORKGROUP*
server string = Samba SMB Server

# You should replace this with your own ip block.
# Just replace the 192.168... address with the
# IP address of first machine.
interfaces = 192.168.0.1/24 127.0.0.1/24
bind interfaces only = Yes
security = SHARE
log file = /var/log/samba/log.%m
max log size = 50
read bmpx = No
time server = Yes
socket options = TCP_NODELAY
os level = 65
preferred master = Yes
dns proxy = No
wins support = Yes
guest account = smbuser
hide dot files = No

[public]
comment = Public
path = /path/to/shared/area
read only = No
create mask = 0664
directory mask = 0775
guest ok = Yes

[data]
comment = Data
path = /home/samba/data
read only = No
create mask = 0660
directory mask = 0770
guest ok = Yes

Linux
12-03-2000, 11:53 AM
I got my samba server working. When I first set it up I could see samba server in Windows network neighborhood (my network places in Win 2000), but after rebooting win 2000 it is not there even though I still have share that I mapped to samba share. How can I get samba server back into network neighborhood??? Any thoughts ?

ThanX

darkrose
12-05-2000, 04:34 PM
Welcome to the wonderful world of Windows Browser. You need to hit F5 a bunch of times until it shows up, or wait for 12 minutes (+/- a few).

The easiest way to do it is to map the drive at bootup (when you get it to show up in network neighborhood, right-click on a folder on the share, hit "map network drive".

You can also set up a hosts file in windows..

Linux
12-08-2000, 10:25 AM
I got it working. I mapped the drive so now every time I boot it connect to it.

ThanX