The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
wu-ftpd email-lalit Linux 4 06-07-2008 05:25 PM
how to check if a file ftpd to mainframe was actually ftpd vikas.rao11 UNIX Desktop for Dummies Questions & Answers 4 03-24-2008 01:52 AM
turning auditing on AIX 4.3 itik AIX 1 11-20-2007 12:07 AM
Turning Echo off chapmana UNIX for Dummies Questions & Answers 4 11-24-2006 05:23 AM
Turning off the CDE meyersp UNIX for Advanced & Expert Users 11 10-28-2003 07:05 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-17-2008
Registered User
 

Join Date: Feb 2006
Posts: 4
Turning in.ftpd on and off

For two straight days someone was running in.ftpd in my server (apparently looking to break in) and when I would do "top" almost every line would read "in.ftpd". I had a unix sysadmin friend of mine shut it down and then start it back up in a day and a half and all seems OK for now.
Here's what I read in order to do this in.ftpd shutdown myself and not have to call on my friend. Is this correct as shown below?

First, decide which service you want to turn off. For the sake of discussion, call it chargen.
su. Enter your root password.
pico/etc/inetd.conf (or use your favorite editor).
Search for chargen (at the beginning of a line).
Comment this line, by inserting a "#" character at the beginning of the line.
Save this file (/etc/inetd.conf), and exit your editor.
Next, we have to tell inetd to reread /etc/inetd.conf. The way of doing this varies from UNIX variant to the next. Some of the ways are described below.
Solaris 2
ps -ef | grep inetd
You can expect to see output like:
root 140 1 0 Aug 19 ? 0:02 /usr/sbin/inetd -s
root 24366 816 0 09:21:03 pts/7 0:00 grep inetd
The line ending in inetd is the line that identifies the pid (or "process id") of inetd. The second column is the pid number itself, or in this case, 140. Ignore the line ending with the grep inetd; it's part of the command that you just issued.
kill -HUP 140 (be sure to fill in the pid from step 3 - don't just use 140 unless that's what your ps -ef | grep inetd identified too)


Thanks for any advice, help, or feedback.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-17-2008
s93366's Avatar
Registered User
 

Join Date: Apr 2002
Location: sweden
Posts: 152
It seems ok, but since this is posted in the solaris forums you could be running Solaris 10 wich uses a different method for controling inetd.

inetadm is the command to use

(check the syntax with man inetadm)

This is only true for Solaris 10

/Peter
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:08 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0