LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 10-20-2004, 05:41 AM   #1
delalynd
LQ Newbie
 
Registered: Oct 2004
Location: Bristol
Distribution: Red Hat Fedora
Posts: 5

Rep: Reputation: 0
Swat


Very new Linux user would like help with Samba and setting up swat.
 
Old 10-20-2004, 11:30 AM   #2
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
Lots of documentation is included in the samba packages of Red Hat Linux and Fedora Core. There's even the "Using Samba" book included. Start there and ask specific questions.
 
Old 10-26-2004, 04:26 AM   #3
delalynd
LQ Newbie
 
Registered: Oct 2004
Location: Bristol
Distribution: Red Hat Fedora
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for advice. I think I have Samba upand running now. but I still can not get Swat working. http://127.0.0.1:901 just does not work I get an error like "document empty..." I know it is better to use the smb.conf file but I would like to get swat working for peace of mind.

Thanks.
 
Old 10-26-2004, 04:31 AM   #4
srikz
LQ Newbie
 
Registered: Nov 2003
Posts: 19

Rep: Reputation: 0
i Have configured samba its working fine but I found one problem:
Samba seems to replace uppercase letters in filenames by lowercase ones.
Probably it is a Samba configuration issue.
Controlling the filename exactly is of crucial importance for us.
how to deal with this can any body help
 
Old 10-26-2004, 08:03 AM   #5
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
To start Samba swat, all a user of Red Hat Linux would need to do is to login as root and run chkconfig swat on -- this is provided that xinetd service is still running, swat would be started automatically. In case xinetd was disabled, a chkconfig xinetd on ; service xinetd restart would be necessary. Afterwards, use a command like netstat or socklist to show that something listens on port 901 TCP.
 
Old 10-26-2004, 08:50 AM   #6
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 47
Quote:
Originally posted by srikz
i Have configured samba its working fine but I found one problem:
Samba seems to replace uppercase letters in filenames by lowercase ones.
Probably it is a Samba configuration issue.
Controlling the filename exactly is of crucial importance for us.
how to deal with this can any body help
I found this:
# Case Preservation can be handy - system default is _no_
# NOTE: These can be set on a per share basis
preserve case = yes
short preserve case = yes
# Default case is normally upper case for all DOS files
default case = lower
# Be very careful with case sensitivity - it can break things!
case sensitive = no

Here.

Maybe that helps.
 
Old 01-12-2005, 06:19 AM   #7
wjeeha
LQ Newbie
 
Registered: Jan 2005
Posts: 6

Rep: Reputation: 0
Hi,

I am using Red Hat 9.0. My SWAT wasnt working so I downloaded the latest Samba version from Samba.org and compiled it, but the status remains same i.e. my Samba is working fine and it has installed the required SWAT files, but there is no SWAT service appearing in the xinetd.d directory.

I added the following code in the xinetd.conf file:

service swat
{
port = 901
socket_type = stream
wait = no
only_from = localhost
user = root
server = /usr/sbin/swat
log_on_failure += USERID
disable = no
}

I also turned on the httpd, but nothing gained... I cannot start the SWAT service and cant use SWAT using the browser.

Help please..
 
Old 01-12-2005, 06:23 AM   #8
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
SWAT is independent from the HTTP server as it provides an own server. Just point your web browser to "http://127.0.0.1:901". Change the xinetd template file to "only_from = 127.0.0.1". Because you added the file manually, make sure you restart xinetd with "service xinetd restart". Then show that xinetd listens on port 901, run "netstat -tpan" and post output here. When you try to connect, what is logged in /var/log/secure?
 
Old 01-12-2005, 06:39 AM   #9
wjeeha
LQ Newbie
 
Registered: Jan 2005
Posts: 6

Rep: Reputation: 0
I changed from local host to IP but no advantage..

This is now my actual xinetd.conf file:

#
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/

defaults
{
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}


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

includedir /etc/xinetd.d

and the output of netstat -tpan is following:

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:32768 0.0.0.0:* LISTEN 595/rpc.statd
tcp 0 0 0.0.0.0:901 0.0.0.0:* LISTEN 8095/xinetd
tcp 0 0 127.0.0.1:33159 0.0.0.0:* LISTEN 8095/xinetd
tcp 0 0 0.0.0.0:5801 0.0.0.0:* LISTEN 2621/Xvnc
tcp 0 0 0.0.0.0:9098 0.0.0.0:* LISTEN 8095/xinetd
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 7431/smbd
tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 2621/Xvnc
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 576/portmap
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 7984/httpd
tcp 0 0 0.0.0.0:6001 0.0.0.0:* LISTEN 2621/Xvnc
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 2581/vsftpd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 746/sshd
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN 8095/xinetd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 9227/cupsd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 786/sendmail: accep
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 7984/httpd
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 7431/smbd
tcp 0 0 127.0.0.1:631 127.0.0.1:33094 ESTABLISHED 9227/cupsd
tcp 0 0 127.0.0.1:33094 127.0.0.1:631 ESTABLISHED 2953/eggcups
tcp 0 0 9.169.56.22:23 9.169.56.26:3152 ESTABLISHED 7574/telnetd
tcp 0 0 9.169.56.22:445 9.169.56.26:3982 ESTABLISHED 8078/smbd
tcp 0 0 9.169.56.22:5901 9.169.56.26:3596 ESTABLISHED 2621/Xvnc

And finally regarding the logging in /var/log/secure.. well there are only entries of my telnet session there..like

Jan 12 14:28:02 TestLinux xinetd[17855]: START: telnet pid=7711 from=9.169.56.26

Now wat to do?
 
Old 01-12-2005, 06:48 AM   #10
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
Quote:
tcp 0 0 0.0.0.0:901 0.0.0.0:* LISTEN 8095/xinetd
Here xinetd listens on port 901 for SWAT.

Do you have the "wget" package installed? What do you get for "wget --server 127.0.0.1:901"? What do you get for "telnet 127.0.0.1 901"?
 
Old 01-12-2005, 06:56 AM   #11
wjeeha
LQ Newbie
 
Registered: Jan 2005
Posts: 6

Rep: Reputation: 0
Here are the outputs:

[root@TestLinux wjeeha]# wget --server 127.0.0.1:901
--16:49:08-- http://127.0.0.1:901/
=> `index.html'
Connecting to 127.0.0.1:901... connected.
HTTP request sent, awaiting response...
1 HTTP/1.0 401 Authorization Required
2 WWW-Authenticate: Basic realm="SWAT"
3 Connection: close
4 Content-Type: text/html
Authorization failed.

And for telnet:
[root@TestLinux root]# telnet 127.0.0.1 901
Trying 127.0.0.1...
Connected to TestLinux (127.0.0.1).
Escape character is '^]'.


After this nothing happens.. like my telnet session hangs.. and I dont know how to terminate this process.
 
Old 01-12-2005, 07:09 AM   #12
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
Expected output. Your SWAT is working just fine. If you pointed your web browser to http://127.0.0.1:901/ you should see.

In the telnet example you can type in "GET /" and press return twice to get the raw output.
 
Old 01-12-2005, 07:16 AM   #13
wjeeha
LQ Newbie
 
Registered: Jan 2005
Posts: 6

Rep: Reputation: 0
Done!!!

Thankyou so very much! But u wont believe how it worked. I was using Mozilla browser and writing http://127.0.0.1:901/ in the window that is appearing, this time i chose the Open Web Location option from File Menu and wrote http://127.0.0.1:901/ and it opened SWAT...

Now wat was that?????

Last edited by wjeeha; 01-12-2005 at 07:22 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Swat namit Linux - Networking 5 12-02-2005 07:38 PM
Swat doralsoral Linux - Software 4 10-22-2003 01:17 PM
Swat Hone101 Linux - General 1 03-22-2003 08:33 AM
Swat jwithers1 Linux - Networking 2 09-26-2002 02:48 PM
SWAT in RH 7.3 xgtr Linux - Newbie 1 05-31-2002 10:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration