[luau] FTP login info

Warren Togami warren at togami.com
Sun Apr 7 00:32:04 PST 2002


On Sat, 2002-04-06 at 19:59, andersons001 at hawaii.rr.com wrote:
> 
> May as well check xinetd:
> 
> Change your current directory into /etc/xinetd.d and do an ls. This is a list
> of all the services xinetd is listening for. You have two options: the easy/more
> permanent route, or the harder/more better route. 
> If you chose the easier way, you simply delete the files in the folder that
> correspond to services you don't want offered.  Just rm -f to your heart's content
> (you may want to leave ssh if that is your methods of remote access). 
> 
> You can edit the files corresponding to the services you want to disable, and
> add a "disable = yes" line somewhere applicable (between the curly braces configuring
> the service). 
> 
> You will need to stop and start xinetd. This is most likely done by /etc/rc.d/init.d/xinetd
> stop followed by  /etc/rc.d/init.d/xinetd start. 
> 
> Steve Anderson

You can use the "chkconfig" program to enable and disable services,
including those run by xinetd.

Try typing "chkconfig --list"
Normal services are listed first, then the xinetd services are listed
below that.  Any of those services you can enable and disable with:

chkconfig sshd off
chkconfig httpd on
chkconfig rsync on
chkconfig xinetd off

There is a difference here though.  Toggling normal services will not
change their current state, so you would have to run "service sshd stop"
in order to stop sshd now after disabling sshd with chkconfig.

However, if xinetd is running then the super-server enabled services
toggled by chkconfig will be changed IMMEDIATELY.  This toggles the
"disabled" parameter in the individual /etc/xinetd.d/* files and
immediately tells the xinetd daemon about the change.

Of course, if xinetd is not currently running, then none of the xinetd
services will work.  Conversely this means that if you disable xinetd,
then you don't have to worry about stuff like FTPd running.

Here's a little demonstration:

[root at riku root]# chkconfig --list |grep xinetd
xinetd          0:off   1:off   2:off   3:off   4:off   5:off   6:off
[root at riku root]# chkconfig xinetd on
[root at riku root]# service xinetd status
xinetd is stopped
[root at riku root]# service xinetd start
Starting xinetd:                                        [  OK  ]
[root at riku root]# service xinetd status
xinetd (pid 3352) is running...
[root at riku root]# chkconfig --list |grep ftp
        wu-ftpd:        off
[root at riku root]# chkconfig wu-ftpd on
[root at riku root]# netstat -l |grep ftp
tcp        0      0 *:ftp                   *:*           LISTEN





More information about the LUAU mailing list