SWAT not working / Samba 3.0.21c

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
gilthanaz
Site Admin
Posts: 444
Joined: Fri Aug 29, 2003 9:29 pm
Contact:

SWAT not working / Samba 3.0.21c

Post by gilthanaz »

[Problem]
I downloaded the Samba 3.0.21c source and after a ./configure --prefix=/mnt/apps/samba did a make, make install. SMBd is not starting, and swat also cowardly refuses to start. Appearently, something is broken.

[Solution]
For SWAT to work, you need to modify your inetd/xinetd conf, like this:

inetd.conf:

Code: Select all

# swat is the Samba Web Administration Tool
	swat stream tcp nowait.400 root /usr/sbin/swat swat
xinetd.conf:

Code: Select all

service swat
{
	port    = 901
	socket_type     = stream
	wait    = no

	user    = root
	server  = /usr/sbin/swat
	log_on_failure  += USERID
	disable = no
}
Note that i took out the only_from line, so I'am able to remotely configure my samba server.

SMBd and swat still refused to start, but for a very simple reason, as i foun d out: I had wrong settings for the map guest user, so both programs refused to start. I just changed the security settings back to some basics that are known to work, and now smbd starts up without any problems. Also, swat was now reachable over http://IP:901 - hooray!

If you have other problems, you can just follow the how-to on samba.org - its very detailed and easy to understand. Good Job, samba guys!
Post Reply