1832588 Members
3020 Online
110043 Solutions
New Discussion

Re: inetd -c

 
SOLVED
Go to solution
Chang_6
Regular Advisor

inetd -c

Hi,

I made changes to inetd.sec and inetd.conf to disable telnet and ftp. Should I just issue inetd -c? I think it has no effect on existing connections. Is inetd -c sufficient? Please clarify.
10 REPLIES 10
Stf
Esteemed Contributor
Solution

Re: inetd -c

Hello,

yes innet -c will restart inet services without any interruption of network!!!

Stf ;-)
A. Clay Stephenson
Acclaimed Contributor

Re: inetd -c

Yes, inetd -c has the effect of sending a SIGHUP to the inetd process. You can do the same thing with "kill -1 inetd_PID" and that is the way it is done on most UNIX flavors. Inetd -c saves you the trouble of determining the process id of inetd. If will not affect existing sessions.
If it ain't broke, I can fix that.
Deoncia Grayson_1
Honored Contributor

Re: inetd -c

inetd -c reconfigures the internet daemon, by forcing inetd to reread the inetd.conf file. There should be no interruptions and it should work with no problems.
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Sean OB_1
Honored Contributor

Re: inetd -c

inetd -c will force inet to reread the configuration file and will have no affect on current connections to the box.

Chang_6
Regular Advisor

Re: inetd -c

Hi,

On a UNIX System V Release 4.0 Version 3.0

inetd -c won't work. I looked at the man page there is no -c option. I modified inetd.conf and inetd.sec to disable ftp &telnet. telnet is disabled but ftp is sitll working. How can I disable ftp permanently?
Patrick Wallek
Honored Contributor

Re: inetd -c

If you remove or comment out the entries for FTP from the /etc/inetd.conf file then FTP will be disabled.

What release of HP-UX are you trying this on? I *KNOW* that this works on HP-UX 10.20 and higher and it is in the inetd man page. If you are using something different, then there is no guarantee it will work.

If you're not running HP-UX keep in mind that these answers may not work.

Since you don't specify a specific OS, it will be assumed that you are on HP-UX since this is an HP-UX forum.
A. Clay Stephenson
Acclaimed Contributor

Re: inetd -c

The "-c" option is an HP-UX "improvement". As I mentioned earlier, it just saves you a bit of work.

Do this:
ps -ef | grep inetd and note the PID of the inetd process.

kill -1 inetd_PID

That's exactly the same thing that an inetd -c does; inetd has a signal handler for SIGHUP (kill -1) so that when it receives this signal, it rereads the configuration file and then reconfigures itself without disturbing existing connections.
If it ain't broke, I can fix that.
Deoncia Grayson_1
Honored Contributor

Re: inetd -c

I believe you're running Tru64 and if this is true then you're right the -c option will not work to reconfigure the inetd.conf file.
To disable ftp inside the inetd.conf file then you need to do the following

#ftp stream tcp nowait root /usr/sbin/ftpd ftpd

Read this link for more info:

http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V50_HTML/MAN/MAN4/0147____.HTM
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Michael Schulte zur Sur
Honored Contributor

Re: inetd -c

Hi,

in case you run tru64 5.x then it wil be inetd -h

greetings,

Michael
Hoang Chi Cong_1
Honored Contributor

Re: inetd -c

Hi Chang M

You can refer to the manual for more detail the inetd.
As above idea, you can disable telnet and ftp service.
But if you only rem the telnet and ftp in the inetd.sec and inetd.conf. You still can use rlogin service! You can test with CRT software.
I think the best way is: do not disable these services.
You can set the range of IP address which can access your system with these services by adding this line in the inetd.sec file:

telnet allow
ftp allow

Note that: *ONLY* the IP address was specify on that line *CAN* connect to your system with telnet and ftp services.

In additional, you can also change and disable these services on /etc/services

I have never worked with Tru64 but my idea just for HP-UX .

All the best
Regard,
Jimkery
Looking for a special chance.......