LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-24-2001, 07:09 PM   #1
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Rep: Reputation: 15
SWAT help


I couldn't find anything already posted on this forum to help me out so I figured I would start a new thread.

system:
2.4.9-ac4 SMP kernal (RedHate 7.1)
samba 2.2.2
not running X

These are the changes I made to the system.

1.) Compiled and installed the source (which installs swat as well correct?)

2.) Added this line to my /etc/services file


Code:
swat            901/tcp                         # Samba Web Administration Tool
3.) I am running xinetd not inetd so I had to make a file in the /etc/xinetd.d directory called "swat". In that file I put,..

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

Problems:
1.) /sbin/chkconfig --list - xinetd list swat as being on
2.) netstat lists swat as listening

Code:
tcp        0      0 *:swat                  *:*                     LISTEN
3.) http://localhost:901 does not work. Just an general error message.
4.) No firewalling is on.

I hope I have supplied enough information for someone to help. I am really lost on this one fellas.

TIA - Jase
 
Old 11-24-2001, 07:17 PM   #2
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Original Poster
Rep: Reputation: 15
I just checked my system mail and got this,...

"Port Denial noted swat-192.168.1.30"

and also

"Port Denial noted swat-127.0.0.1"


Why would swat be denying this port? Like I said before,...no firewalling is enabled
 
Old 11-24-2001, 11:08 PM   #3
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Sounds like you have no web server running


httpd
 
Old 11-25-2001, 12:01 AM   #4
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Original Poster
Rep: Reputation: 15
sorry for posting in 2 forums David. I was un-sure of which forum this was to be posted in.

To answer your question,....yes apache is running. I figured it out though,.....turns out I had a line or 2 in my hosts.deny from a previous install of Bastille.

If you didn't read the post in the other forum,....how can I remove samba? I had a previous version of it and i think some things got hosed from the previous to the new (2.2.2). I want to get rid of samba all together and install a clean 2.2.2 source.
 
Old 11-25-2001, 12:23 AM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
ok

I thought I was going crazy LOL


did you install from rpm, if so use rpm to uninstall.

I would say just remove the files and reinstall, but I am not sure if that is a real good idea or not..

do you use slocate?

it has a database in it that updates periodically and will find stuff


you can update it by running updatedb

you can find samba like this

bash-2.05# slocate samba
/var/log/samba
/var/log/samba/smbmount.log
/var/log/samba/log.smb
/var/log/samba/smb.log


then



bash-2.05# slocate smb
/usr/src/linux-2.4.9-12/include/config/smb/nls/default.h
/usr/src/linux-2.4.9-12/include/config/smb/nls/remote.h
/usr/i386-glibc21-linux/include/linux/smb.h


and

bash-2.05$ slocate nmb
/var/lock/samba/nmbd.pid
/usr/share/doc/samba-2.0.10/docs/htmldocs/nmbd.8.html
/usr/share/doc/samba-2.0.10/docs/htmldocs/nmblookup.1.html


the output is very long, there is a lot of stuff that goes with it but mostly in certain folders
 
Old 11-25-2001, 02:34 AM   #6
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Original Poster
Rep: Reputation: 15
Well David,.....I removed all the old samba files,.....and compiled the new source (2.2.2) I then created the smb.conf and put in the default lines,...such as WORKGROUP=

I then made sure the 901/tcp line was in my /etc/sercives file. I run testparm and everything is fine. I start samba. I make sure swat is listening,...it is. When I go to http://192.168.1.2:901 it spawns this "tcpd /usr/local/samba/bin/swat" and it just stops there.

I am lost with swat,...lol any suggestions?
 
Old 11-25-2001, 03:18 AM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
check these out

maybe try this

/etc/hosts.allow

add
swat: 127.0.0.1

or
swat: localhost

or

swat: LOCAL

-------------------------------------------------
is swat in /usr/local/samba/bin/ ?

mine is in /usr/sbin


the /etc/pam.d/samba file

auth required /lib/security/pam_stack.so service=system-auth
account required /lib/security/pam_stack.so service=system-auth


make sure the user you are trying to log into swat from has write access to the smb.conf file



Last edited by DavidPhillips; 11-25-2001 at 03:31 AM.
 
Old 11-25-2001, 03:41 AM   #8
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Also you need to use localhost:901 or 127.0.0.1:901

the ip address you are putting in will probably not work.
 
Old 11-25-2001, 07:42 AM   #9
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Original Poster
Rep: Reputation: 15
David,

I think I may have deleted some necessary files when I was clearing out the old installs. I have gone through all you suggested, but to no avail.

David Writes

"is swat in /usr/local/samba/bin/ ?

mine is in /usr/sbin


the /etc/pam.d/samba file

auth required /lib/security/pam_stack.so service=system-auth
account required /lib/security/pam_stack.so service=system-auth


make sure the user you are trying to log into swat from has write access to the smb.conf file"

1.) Swat is in /usr/local/samba/bin/swat
2.) I have added the /etc/pam.d/samba file
3.) I cannot get to the login page to login as a user with write priviliges.


When I go to http://serverip:901 it spawns this process
Code:
tcpd /usr/local/samba/bin/swat
it just hangs there.

I am not running X therefore I have no local browser. lynx will not bring up the page, I have tried.
Could this be a problem with xinetd?

TIA - Jase
 
Old 11-25-2001, 08:14 PM   #10
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Original Poster
Rep: Reputation: 15
Is ther any way I can have samba list out the requirements before it installs? Maybe samba is missing a service that it needs to run,....I dunno
 
  


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 On
HTML code is Off



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:02 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration