Jump to content

[SOLVED] So, I turned FTP off, but now I need it back


michaellunsford

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...

 

  Quote
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.

  Quote
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.

 

  Quote
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:

  Quote
ftp

ftpcount

ftpdctl

ftptop

ftpwho

lftp

lftpget

pftp

sftp

 

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

  Quote
  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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.