Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Samba...swat does not work!

Status
Not open for further replies.

Trekkie

Technical User
Apr 29, 2000
150
CA
Hi

I need help with my Samba server. I have RH 7.1 with Samba2.2.1a. I have checked in /etc/services for "swat 901/tcp" then I added "swat stream tcp nowait.400 root /usr/sbin/swat swat" into /etc/xinetd.conf file. I rebooted the server then I startup the KDE, but the Netscape cannot find the path.



Did I place the swat line incorrectly? There is only one space between words. What am I doing wrong

On the xinetd.conf file

defaults
{
instances = 60
log_type = SYSLOG authpriv
log_on_access = HOST PID
log_on_failure = HOST
swat stream tcp nowait.400 root /usr/sbin/swat swat
}
includedir /etc/xinetd.d


Thank you.
 
Hi,

If you installed a redhat built samba rpm then the swat config file is installed via that rpm as /etc/xinetd.d/swat . You'd edit that file not /etc/xinetd.conf and unless you want a special config you'd just change the line that says 'disable=yes' to 'disable=no'. In your browser you'd just do and the authorisation panel should appear.

If you got a rpm from it may not be built in quite the same way insofar as xinted files are comcerned. Anyway you can get the redhat built 2.2.1a rpms from .

Rgds
 
I have downloaded samba-latest.tar.gz from Samba website. There is no /etc/xinetd.d/swat file. If I downloaded tar version, how do I get the swat to work?
 
Hi,

Just create a file /etc/xinetd.d/swat containing this :

service swat
{
port = 901
socket_type = stream
wait = no
user = root
server = /usr/local/samba/bin/swat
log_on_failure += USERID
disable = no
}


(Change server path if necessary)

Regards
 
I would also add

only_from=127.0.0.1
(or another ip)
for security of Swat...

Just an idea :)

-j ---
John Hoke
 
Thanks everybody, the swat works. I appreciate your help!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top