michaellunsford Posted May 24, 2007 Share Posted May 24, 2007 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? Quote Link to comment Share on other sites More sharing options...
trq Posted May 24, 2007 Share Posted May 24, 2007 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 Quote Link to comment Share on other sites More sharing options...
michaellunsford Posted May 24, 2007 Author Share Posted May 24, 2007 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 Quote Link to comment Share on other sites More sharing options...
trq Posted May 24, 2007 Share Posted May 24, 2007 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? Quote Link to comment Share on other sites More sharing options...
michaellunsford Posted May 24, 2007 Author Share Posted May 24, 2007 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 Link to comment Share on other sites More sharing options...
trq Posted May 25, 2007 Share Posted May 25, 2007 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. Quote Link to comment Share on other sites More sharing options...
michaellunsford Posted May 25, 2007 Author Share Posted May 25, 2007 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. Quote Link to comment Share on other sites More sharing options...
michaellunsford Posted May 25, 2007 Author Share Posted May 25, 2007 I rebooted... still no FTP. I tried proftpd, but it reports "fatal: Socket operation on non-socket" Quote Link to comment Share on other sites More sharing options...
michaellunsford Posted May 28, 2007 Author Share Posted May 28, 2007 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.