LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   missing swat file in /etc/inetd.d/ in 7.1 (https://www.linuxquestions.org/questions/linux-software-2/missing-swat-file-in-etc-inetd-d-in-7-1-a-3014/)

MrX 06-01-2001 04:37 PM

I am trying to set up Samba which was supposedly installed with RedHat 7.1 and noticed that I have no swat file in /etc/inetd.d/. I tried reinstalling xinetd and samba from the rpm but that didn't do the trick. I guess I could recreate it if I knew what it was supposed to look like. Could someone help please?

Q25 06-01-2001 07:48 PM

The SWAT file is placed in /etc/xinetd.d/

Check out http://www.webmin.com/webmin/
You can use that to set up Samba from you browser too + LOTS of other things ;)

MrX 06-04-2001 12:07 PM

Missing swat file in etc/inetd.d
 
Excuse me.
I meant /etc/xinetd.d/
No swat file there.
It should be a small file. Maybe someone could just post it and I can recreate it?

kris.kj.jacobs 06-04-2001 12:39 PM

These are the contents of my swat-file (/etc/xinetd.d/swat):

Code:

# default: on
# 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
{
        port    = 901
        socket_type    = stream
        wait    = no
        only_from = localhost
        user    = root
        server  = /usr/sbin/swat
        log_on_failure  += USERID
        disable = no
}

Good luck.

MrX 06-04-2001 06:06 PM

missing swat file in /etc/xinetd.d/ in 7.1
 
Yep, that's it. Unfortunately I had some other swat files missing too that just didn't install with RedHat 7.1. I updated to Samba 2.2.0 and was able to get all the files I needed. Unfortunately, I still can't connect through my browser. I get a 400 server error saying "chdir failed - the server is not configured correctly"
ouch

Q25 06-04-2001 06:42 PM

It seems quite a few ppl are having problems with getting SWAT running.. that included me... actually I never got it running, cause I can't be assed to spend that amount of time, when there is an easier solution.. ;)
As I said in the earlier post Webmin is a good solution. It's very easy to set up if you DL the RPM packet..
Actually you can even log into SWAT from Webmin. But you can also just set things up from Webmin..


MrX 06-05-2001 06:33 PM

I installed Webmin and was able to get in right away. I like it. However, I still can't get Samba to work right. I can't see my Linux machine in the windows network neighborhood and when I do a smbstatus I get the following message:

Failed to open byte range locking database
ERROR: Failed to initialise locking database
Can't initialize locking module -exiting

MrX 06-05-2001 06:55 PM

Never Mind. I'ts working now. My Network admin still had the old ip address of the linux machine in the WINS server. He changed it and it works now. webadmin is great!

Q25 06-05-2001 07:03 PM

Nice ;)

vcheah 11-25-2002 12:17 AM

Quote:

Originally posted by MrX
Never Mind. I'ts working now. My Network admin still had the old ip address of the linux machine in the WINS server. He changed it and it works now. webadmin is great!

I am having the same problem...
where can i change the ip address?


All times are GMT -5. The time now is 01:10 PM.