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?

Link to comment
Share on other sites

Take a look in /etc/{init.d,rc.d}/ for the name of the service. Thats either /etc/init.d/ or /etc/rc.d/. Normally, to start a service you would use....

 

/etc/{init.d,rc.d}/nameofservice start

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

Neither do I. Sure you didn't actually remove it?

 

Depending on how long your history list is you may be able to find the command you used to stop the service by using...

 

$ grep ftp ~/.bash_history

 

What distro is this?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.