Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot find inetd.conf
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
mwickes
n00b
n00b


Joined: 17 Apr 2002
Posts: 18
Location: Cleveland, Ohio

PostPosted: Sun Apr 21, 2002 8:04 pm    Post subject: Cannot find inetd.conf Reply with quote

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
View user's profile Send private message
Mindflux
n00b
n00b


Joined: 20 Apr 2002
Posts: 5

PostPosted: Sun Apr 21, 2002 8:14 pm    Post subject: whee Reply with quote

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
View user's profile Send private message
Guest






PostPosted: Sun Apr 21, 2002 8:45 pm    Post subject: Reply with quote

Don't we need to run inetd or xinetd if we want to use tcpwrappers on everything?
Back to top
prolific
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 237

PostPosted: Sun Apr 21, 2002 11:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Guest






PostPosted: Mon Apr 22, 2002 5:24 am    Post subject: tried the rc-update- no-go Reply with quote

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
Guru


Joined: 18 Apr 2002
Posts: 409
Location: Canary Islands. Spain

PostPosted: Mon Apr 22, 2002 9:13 pm    Post subject: Reply with quote

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:
Code:

smbpasswd -a root


then open a web browser window an type

Code:

  http://localhost:901


I've just made it an it works!! :D

Nos vemos.
Back to top
View user's profile Send private message
vinnie
n00b
n00b


Joined: 20 Apr 2002
Posts: 29
Location: Maryland

PostPosted: Sat May 11, 2002 10:33 pm    Post subject: Okay, I've done whats shown here... Reply with quote

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
View user's profile Send private message
Nick
Guest





PostPosted: Sun May 12, 2002 6:24 am    Post subject: restarting xinetd Reply with quote

/etc/init.d/xinetd restart

(as root)
Back to top
Guest






PostPosted: Sun May 12, 2002 6:33 am    Post subject: It's missing Reply with quote

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 8) ). 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
n00b


Joined: 20 Apr 2002
Posts: 29
Location: Maryland

PostPosted: Sun May 12, 2002 3:40 pm    Post subject: but.. Reply with quote

I dont have a /etc/init.d/xinetd
_________________
-vin
Back to top
View user's profile Send private message
Lox
n00b
n00b


Joined: 12 May 2002
Posts: 4

PostPosted: Mon May 13, 2002 1:57 am    Post subject: Reply with quote

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
View user's profile Send private message
Scott Frappier
n00b
n00b


Joined: 08 May 2002
Posts: 57

PostPosted: Mon Jul 01, 2002 8:44 pm    Post subject: Howto get SWAT working. Reply with quote

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 :evil:. 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
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Mon Jul 01, 2002 8:47 pm    Post subject: Reply with quote

No, don't reboot! You don't need to. Preserve your glorious uptime... :D

/etc/init.d/[x]inetd restart should do the trick.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 16113
Location: Colorado

PostPosted: Mon Jul 01, 2002 8:58 pm    Post subject: Reply with quote

delta407 wrote:
No, don't reboot! You don't need to. Preserve your glorious uptime... :D

/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.
_________________
lolgov. 'cause where we're going, you don't have civil liberties.

In Loving Memory
1787 - 2008
Back to top
View user's profile Send private message
jdc
n00b
n00b


Joined: 15 Jun 2002
Posts: 13

PostPosted: Mon Jul 01, 2002 9:38 pm    Post subject: Reply with quote

This is what I did:
http://forums.gentoo.org/viewtopic.php?t=5013&highlight=samba+swat
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Mon Jul 01, 2002 10:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum