  | | | Samba--Connection Refused | Samba--Connection Refused 2004-12-13 - By Wayne Watson
Back I logon as root. Here's some info from an exercise this morning shortly after I rebooted:
cat /var/log/secure last few lines Dec 13 12:05:26 AstroPC2004 xinetd[10097]: START: swat pid=10116 from=127.0.0.1 Dec 13 12:05:26 AstroPC2004 xinetd[10117]: FAIL: swat address from=127.0.0.1 Dec 13 12:05:26 AstroPC2004 xinetd[10097]: START: swat pid=10117 from=127.0.0.1 rebooting at this point. Dec 13 12:06:16 AstroPC2004 sshd[3465]: Received signal 15; terminating. Dec 13 12:07:38 AstroPC2004 sshd[3450]: Server listening on 0.0.0.0 port 22. Dec 13 12:08:08 AstroPC2004 xinetd[3464]: START: sgi_fam pid=3788 from=<no address>
[root@(protected) root]# service xinetd restart Stopping xinetd: [ OK ] Starting xinetd: [ OK ]
cat /var/log/secure additional lines since restart when opened Mozilla and tried executing http://127.0.0.1:901 localhost:901 and a mistaken localsystem:901 entry for the URL. The sgi_fam is a little puzzling. I have a siig card in my computer. This may not be related to sgi though. The siig card is a serial/parallel card.
Dec 13 12:08:08 AstroPC2004 xinetd[3464]: START: sgi_fam pid=3788 from=<noaddress> Dec 13 12:10:35 AstroPC2004 xinetd[3906]: FAIL: swat address from=127.0.0.1 Dec 13 12:10:35 AstroPC2004 xinetd[3861]: START: swat pid=3906 from=127.0.0.1 Dec 13 12:10:35 AstroPC2004 xinetd[3907]: FAIL: swat address from=127.0.0.1 Dec 13 12:10:35 AstroPC2004 xinetd[3861]: START: swat pid=3907 from=127.0.0.1 Dec 13 12:10:35 AstroPC2004 xinetd[3908]: FAIL: swat address from=127.0.0.1 Dec 13 12:10:35 AstroPC2004 xinetd[3861]: START: swat pid=3908 from=127.0.0.1 Dec 13 12:10:35 AstroPC2004 xinetd[3909]: FAIL: swat address from=127.0.0.1 Dec 13 12:10:35 AstroPC2004 xinetd[3861]: START: swat pid=3909 from=127.0.0.1 Dec 13 12:10:35 AstroPC2004 xinetd[3910]: FAIL: swat address from=127.0.0.1 Dec 13 12:10:35 AstroPC2004 xinetd[3861]: START: swat pid=3910 from=127.0.0.1 Dec 13 12:10:35 AstroPC2004 xinetd[3911]: FAIL: swat address from=127.0.0.1 Dec 13 12:10:35 AstroPC2004 xinetd[3861]: START: swat pid=3911 from=127.0.0.1 Dec 13 12:10:35 AstroPC2004 xinetd[3912]: FAIL: swat address from=127.0.0.1 Dec 13 12:10:35 AstroPC2004 xinetd[3861]: START: swat pid=3912 from=127.0.0.1 Dec 13 12:10:35 AstroPC2004 xinetd[3913]: FAIL: swat address from=127.0.0.1 Dec 13 12:10:35 AstroPC2004 xinetd[3861]: START: swat pid=3913 from=127.0.0.1 Dec 13 12:10:35 AstroPC2004 xinetd[3914]: FAIL: swat address from=127.0.0.1 Dec 13 12:10:35 AstroPC2004 xinetd[3861]: START: swat pid=3914 from=127.0.0.1 Dec 13 12:10:35 AstroPC2004 xinetd[3915]: FAIL: swat address from=127.0.0.1 Dec 13 12:10:35 AstroPC2004 xinetd[3861]: START: swat pid=3915 from=127.0.0.1
More data: [root@(protected) root]# chkconfig --list swat swat on
[root@(protected) root]# cat /etc/xinetd.d/swat # default: off # description: SWAT is the Samba Web Admin Tool. Use swat \ # to configure your Samba server. To use SWAT, \ # connect to port 901 with your favorite web browser. service swat { disable = no port = 901 socket_type = stream wait = no only_from = localhost user = root server = /usr/sbin/swat log_on_failure += USERID }
Michael Schwendt wrote:
> On Mon, 13 Dec 2004 06:31:21 -0800, Wayne Watson wrote: > > >>I've installed samba-3 (See http://mba-3.ora-code.com).0.9-1_rh9.i386.rpm on my machine, and now would like to fire >>up Samba. smbd is running. I'm using "Linus Networking" HowTo on the web, chapter 10. >>The author is Peter Harrison. On page 5, he talks about the SWAT file. I've >>incorporated the two statements: >> >>disable = no >>only_from=localhost 192.168.0.2 > > > After editing this file, did you restart the xinetd superserver? > Command "service xinetd restart" would do that. > > To enable swat, the "chkconfig swat on" command would have been enough. > No need to edit the file manually. And access restrictions with only_from > only make sense after > > Note that to run chkconfig/service without full path, you must be > logged in as root user, i.e. "su --login", "su -l" or "su -". > > >>The IP address is the one I use for my machine. The other machines are at 192 .168.0.1 >> (linux) and 192.168.0.3 (XP). For the moment only 2 and 3 are online. >> >>According to the test I can fire up swat from a browser, Moz, in my case. I 've tried >>with the following three URLs: >>http://127.0.0.0:901 --> msg: Connection refused when trying to contact ... >>http://192.168.0.2:901 -->msg: Document contents are empty ... > > > What is logged in /var/log/secure? >
-- Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 (See http://GMT-8.ora-code.com) hr std. time) Obz Site: 39?? 15' 7" N, 121?? 2' 32" W, 2700 feet (Formerly Homo habilis, erectus, heidelbergensis and now sapiens)
"There's no such thing as a stupid question, but they're the easiest to answer!" -- anon.
Web Page: <home.earthlink.net/~mtnviews>
-- Shrike-list mailing list Shrike-list@(protected) https://www.redhat.com/mailman/listinfo/shrike-list
|
|
 |