View previous topic :: View next topic |
Author |
Message |
mwickes n00b
Joined: 17 Apr 2002 Posts: 18 Location: Cleveland, Ohio
|
Posted: Sun Apr 21, 2002 8:04 pm Post subject: Cannot find inetd.conf |
|
|
Hello, is anyone using swat to manage samba? I am trying to get swat going but it needs an entry in /etc/inetd.conf for which there is no file. It looks like Gentoo puts everything in init.d but how do you start swat??
Thanks
Mike |
|
Back to top |
|
|
Mindflux n00b
Joined: 20 Apr 2002 Posts: 5
|
Posted: Sun Apr 21, 2002 8:14 pm Post subject: whee |
|
|
gentoo doesn't work off inetd.conf as far as I've seen, you can emerge xinitd if you really want to, that'll set you up with xinitd..
I'm just running samba from the startup scripts.. rc-update add samba default
as far as swat goes.. I don't use it. |
|
Back to top |
|
|
Guest
|
Posted: Sun Apr 21, 2002 8:45 pm Post subject: |
|
|
Don't we need to run inetd or xinetd if we want to use tcpwrappers on everything? |
|
Back to top |
|
|
prolific Apprentice
Joined: 19 Apr 2002 Posts: 237
|
Posted: Sun Apr 21, 2002 11:47 pm Post subject: |
|
|
All inetd.conf does is that it starts a service when the computer boots. So all you have to do is enter the following line. In this example I want "sshd" to start when the computer boots.
Code: | rc-update add sshd default |
Hope this helps. |
|
Back to top |
|
|
Guest
|
Posted: Mon Apr 22, 2002 5:24 am Post subject: tried the rc-update- no-go |
|
|
prolific wrote: | All inetd.conf does is that it starts a service when the computer boots. So all you have to do is enter the following line. In this example I want "sshd" to start when the computer boots.
Code: | rc-update add sshd default |
Hope this helps. |
I did the rc-update and here is what I get:
blemail / # rc-update add swat default
* /sbin/rc-update: /etc/init.d/swat not found; aborting.
Swat is indeed installed as it comes w samba and there is an entry in: /usr/sbin/swat
Thanks!
Mike |
|
Back to top |
|
|
lunatc Guru
Joined: 18 Apr 2002 Posts: 409 Location: Canary Islands. Spain
|
Posted: Mon Apr 22, 2002 9:13 pm Post subject: |
|
|
Hello
Try this (as root):
Create a file named swat at /etc/xinetd.d/ with the following in it:
Code: |
service swat
{
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/swat
disable = no
}
|
restart xinetd with /etc/init.d/xinetd restart
make sure that there is a samba user root, if not type:
then open a web browser window an type
I've just made it an it works!!
Nos vemos. |
|
Back to top |
|
|
vinnie n00b
Joined: 20 Apr 2002 Posts: 29 Location: Maryland
|
Posted: Sat May 11, 2002 10:33 pm Post subject: Okay, I've done whats shown here... |
|
|
But I can't seem to get it to work.
this is my /etc/xinet.d/swat
Code: | # 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
{
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/swat
disable = no
}
|
I try to use lynx to get to http://localhost:901 and it tells me it cannot connect to remote host. CUPS administrator works fine on port 631... What am I missing?
I'm not sure how to restart the inet processes, so I've been rebooting everytime I make a change... _________________ -vin |
|
Back to top |
|
|
Nick Guest
|
Posted: Sun May 12, 2002 6:24 am Post subject: restarting xinetd |
|
|
/etc/init.d/xinetd restart
(as root) |
|
Back to top |
|
|
Guest
|
Posted: Sun May 12, 2002 6:33 am Post subject: It's missing |
|
|
The package fails to install inetd.conf where it should be . inetd is installed by default as part of the netkit-base package (so don't go installing xinitd unless you prefer it ). The normal sample inetd.conf can be found in " /usr/doc/netkit-base-0.17-r6/samples/inetd.conf.gz" |
|
Back to top |
|
|
vinnie n00b
Joined: 20 Apr 2002 Posts: 29 Location: Maryland
|
Posted: Sun May 12, 2002 3:40 pm Post subject: but.. |
|
|
I dont have a /etc/init.d/xinetd _________________ -vin |
|
Back to top |
|
|
Lox n00b
Joined: 12 May 2002 Posts: 4
|
Posted: Mon May 13, 2002 1:57 am Post subject: |
|
|
prolific wrote: | All inetd.conf does is that it starts a service when the computer boots.
|
Doesn't inetd launch a program in response to a connection to a particular protocol/port? For instance it launches the time prog in response to a connection to the time port?
I thought (an might well be wrong) that gentoo used djb's daemon tools to perform the same job... |
|
Back to top |
|
|
Scott Frappier n00b
Joined: 08 May 2002 Posts: 57
|
Posted: Mon Jul 01, 2002 8:44 pm Post subject: Howto get SWAT working. |
|
|
After looking at this thread, I have noticed that no one has answered the original question...which was basically, "How do I start SWAT with inetd.conf (because it is missing)."
The inet daemon is installed with netkit-base. Therefore, I believe every Gentoo user should have this. The quirky thing about all of this is that Gentoo does not seem to ship with a 'standard' inetd.conf file. The reasons for this are probably because of the safety precautions and the rc-update scripts.
Sadly yet, it does not seem that the Gentoo maintainer has not created a rc-update compatible script yet. It would be easy to make, but time is always a consideration, because there is never enough of it .
So, we are left to either using xinetd or standard inetd. In order to use the xinetd, you need to emerge it first. Then it should work almost magically, because it seems that the Gentoo samba maintainer created a swat xinetd.d configuration.
But for us ppl that think old is good, we get the shaft . Ahh well, here are the steps to make life a little easier and less confusing.
1.) 'emerge samba'
2.) Do the following 'rc-update add inetd default'. This will add the inet daemon to start during bootup.
3.) Create a new inetd.conf file, and copy the contents of 'man swat' for the inetd configuration. Make sure to have the correct path information.
4.) Do a 'smbpasswd -a root' or you will not be able to login to your shiny new samba install.
Go ahead and reboot. SWAT should now automatically start and you can connect to it via http://localhost:901
I hope this helps, and I'm pretty sure in the future there we be a change and an addition of a rc-update script for starting swat.
Enjoy!
Scott Frappier |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Mon Jul 01, 2002 8:47 pm Post subject: |
|
|
No, don't reboot! You don't need to. Preserve your glorious uptime...
/etc/init.d/[x]inetd restart should do the trick. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Mon Jul 01, 2002 8:58 pm Post subject: |
|
|
delta407 wrote: | No, don't reboot! You don't need to. Preserve your glorious uptime...
/etc/init.d/[x]inetd restart should do the trick. |
I really need to learn what you have to do in various situations to avoid rebooting. When to 'source' what,
the [x]inetd restart as you mentioned and whatever else there might be. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
jdc n00b
Joined: 15 Jun 2002 Posts: 13
|
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Mon Jul 01, 2002 10:15 pm Post subject: |
|
|
kanuslupus wrote: | I really need to learn what you have to do in various situations to avoid rebooting. When to 'source' what,
the [x]inetd restart as you mentioned and whatever else there might be. |
Well, if you're reconfiguring a service, restarting it generally does the trick. If something changes the environment variables (installing X, for instance, which adds path entries and stuff), source /etc/profile will usually get your shell up-to-date. Linux is a very stable operating system, and in most cases you don't have to reboot unless you're switching kernels or your hardware craps out. |
|
Back to top |
|
|
|