Operating System - HP-UX
1847231 Members
2599 Online
110263 Solutions
New Discussion

how can start the service telnet in h9000

 
SOLVED
Go to solution
Emilio Brusa
Frequent Advisor

how can start the service telnet in h9000

Hi everyone
In my unix 11i how can i start the service of ftp and telnet.
they run ok but now i dont know what happend whit this.

thank

E.
8 REPLIES 8
Kenneth Platz
Esteemed Contributor

Re: how can start the service telnet in h9000

FTP and Telnet are both started via the inetd daemon. You should see the following 2 entries in your /etc/inetd.conf file:

ftp stream tcp nowait root /usr/lbin/ftpd ftpd
telnet stream tcp nowait root /usr/lbin/telnetd telnetd

If either of these are commented out or not present, then simply add them / uncomment then, and run an "inetd -c" to re-read the configuration file.

If you are looking for ftpd and/or telnetd via "ps -ef", they will only spawn if and when a connection request comes in.
I think, therefore I am... I think!
Jeff Schussele
Honored Contributor

Re: how can start the service telnet in h9000

Hi E,

These are "on demand" services that only run when a request comes in.
IF their entries in /etc/inetd.conf are *not* commented out, then they should respond. But the security settings in /var/adm/inetd.sec or /etc/hosts.allow or hosts.deny (from the tcp-wrappers package) may disallow the connections.

If they're commented out, then uncomment them & run inetd -c

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Hoefnix
Honored Contributor

Re: how can start the service telnet in h9000

These services are serviced by the inetd.
You can configure this in the /etc/inetd.conf

Regards,
Peter
A. Clay Stephenson
Acclaimed Contributor

Re: how can start the service telnet in h9000

ftpd and telnetd are started by inetd. If they are working now but stopped for some reason before then I would bet that inetd stopped.

If you can ping this host from another host but nothing else works, it's a pretty sure bet that inetd died. It's not a bad idea to have a cron job that runs every 5 minutes or so and determines if inetd is running and if not then do an /sbin/init.d/inetd start.

I would also look for any inetd, ftpd, and telnetd patches and apply them.

If it ain't broke, I can fix that.
Emilio Brusa
Frequent Advisor

Re: how can start the service telnet in h9000


HI.
In the inetd.conf have the next
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l

telnet stream tcp nowait root /usr/lbin/telnetd telnetd



# inetd -c
inetd: There is no inetd running
#

how can i do ?









Patrick Wallek
Honored Contributor
Solution

Re: how can start the service telnet in h9000

Try doing:

# /sbin/init.d/inetd start


You should also check /var/adm/syslog/syslog.log or dmesg to see if there are any error messages from inetd to help you determine the reason it is not running.
Emilio Brusa
Frequent Advisor

Re: how can start the service telnet in h9000

Thanks everybody.

E.
A. Clay Stephenson
Acclaimed Contributor

Re: how can start the service telnet in h9000

I suggest that you apply patches PHCO_29495 and PHNE_28328. I also suggest that you assume that at some point inetd is going to die and take steps to respawn it automatically. I add something similar to this as a matter of course to all my boxes. It very seldom actually runs but it beats getting up in the middle of the night to start inetd from the console.

Make a cron entry similar to this:
2,7,12,17,22,27,32,37,42,47,52,57 * * * * /root/bin/inetdchek.sh # make sure that inetd daemon is running

Here is inetdchek.sh.

If it ain't broke, I can fix that.