Jump to content

Recommended Posts

Since I was having some hack attemtps through FTP (one successful), I searched google and found out how to turn the service off. I generally use SFTP, so it's been off for months.

 

Well, now I want to update phpbb - but it requires ftp. Well, oops, I can't remember how I turend it off. I remember it was a command-line thing, but that's it. Any ideas how I did it?

I just don't see anything that has FTP in the title...

 

acpid         httpd          netfs                 psa-vpn          snmptrapd

anacron       iptables       netplugd              qmail            spamassassin

apmd          irda           network               random           sshd

atd           irqbalance     nfs                   rawdevices       syslog

autofs        isdn           nfslock               readahead        sysstat

courier-imap  killall        nscd                  readahead_early  tomcat4

cpuspeed      kudzu          ntpd                  rhnsd            winbind

crond         mailman        pcmcia                rpcgssd          xfs

cups          mdmonitor      portmap               rpcidmapd        xinetd

dc_client     mdmpd          postgresql            rpcsvcgssd       ypbind

dc_server     messagebus     psa                   saslauthd        yum

drwebd        microcode_ctl  psacct                single

functions     mysqld         psa-firewall          smartd

gpm           named          psa-firewall-forward  smb

halt          netdump        psa-spamassassin      snmpd

 

I ran a single command from the command prompt -- it was reminiscent of apachetcl, and I believe it had three components ... the command, and two passed variables. I even ran it thrice. First time to turn it off, test, turn it back on, test, then the final off.

 

I didn't modify any conf files, so rebooting the server would probably fix the problem instantly. But I had hoped to turn it back off again after phpbb updated itself.

 

distro, I believe, is RedHat Fedora. uname -a says:

 

Linux www.example.com 2.6.5-1.358 #1 Sat May 8 09:04:50 EDT 2004 i686 i686 i386 GNU/Linux

 

PS> the grep thing only revealed things from the last 30 days or so... It's probably been 80+days since I shut off FTP.

PS> the grep thing only revealed things from the last 30 days or so... It's probably been 80+days since I shut off FTP.

 

The grep thing would only find commands issued that were related to ftp. So maybe some of that output was usefull.

 

I didn't modify any conf files, so rebooting the server would probably fix the problem instantly.

 

Anything that starts as a service should be in /etc/{init.d,rc.d}. If the command had ftp in its name you could run...

 

$ ls /bin /usr/bin | grep ftp

 

and see what shows up. If you think you've found it just use....

 

$ man cmdname

 

to get details of its usage.

commands listed are:

ftp

ftpcount

ftpdctl

ftptop

ftpwho

lftp

lftpget

pftp

sftp

 

I'm thinking ftpdctl, but it gives me this odd error:

  Controls support disabled.

  Please recompile proftpd using --enable-ctrls

 

maybe I should just reboot.

HAHA! thorpe is a genius!

 

Well, I did the first suggestion again minus the grep. I ran through the things I remember doing about the same time and started just looking through the commands for anything odd. I found this command:

 

chkconfig ftp_psa off

 

which, come to think of it, should have come up in the grep (and probably did), but for whatever reason I missed it.

 

Suffice it to say, it's all happy now.

 

Thanks again! I really could not have found it without your suggestion.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.