LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to uninstall ProFTPd and other FTP-packages? (https://www.linuxquestions.org/questions/linux-software-2/how-to-uninstall-proftpd-and-other-ftp-packages-237924/)

Maarten_Holland 10-02-2004 12:42 PM

How to uninstall ProFTPd and other FTP-packages?
 
Hi all,

I've got some problems with my SuSE Linux 9.1 box: I've installed ProFTPd several weeks ago but can't remember what I did exactly (noob alert!).

When I make changes to /etc/proftpd.conf, these don't seem to affect proftpd. When I run /usr/sbin/ProFTPd stop, followed by /usr/sbin/ProFTPd start (or /usr/sbin/ProFTPd start -c /etc/proftpd.conf) my changes are not applied.

When I run /usr/sbin/ProFTPd stop I can still connect using my FTP client. I get the feeling there is another FTP server running or /usr/sbin/ProFTPd is not the right script to run.

When I search for 'ftp' using the package manager in YaST, it doesn't find anything. I like to delete all FTP-packages, and especially ProFTPd, to try a new install.

Can anyone tell me how to do this?

Thank you in advance,

Maarten

SkyLinePL 10-02-2004 03:55 PM

whereis proftpd
did u have one installed by default, then u installed one from the source ? check if u dont have it doubled :)

Krugger 10-02-2004 04:13 PM

So you didn't install a package.

if you compiled it, try a make uninstall. Some makefile bring a uninstall script.

you could also try to do an updatedb and then locate proftp. Locate is a command that will search the database generated by updatedb. This will show you all the file and directories that have proftp in the name and you can delete all the files.

You can also just delete the proftpd and there will be no more ftp service on, but you should clean it from your inicial scripts.

/usr/sbin/proftpd is a executable not a script. Therefor proftp stop doesn't work. Although I would expect it to read the configuration file and launch another copy of itself. Check out /etc/inetd.conf and then it's either init.d, rc.d or conf.d. It's the directory with your system inicialization scripts. Not sure what Suse is using.

Maarten_Holland 10-03-2004 03:40 AM

Thank you for your replies.

I compiled it from source, but there is no 'make uninstall' available.

#whereis proftpd

/ etc/proftpd.conf /usr/local/sbin/proftpd

Inetd.conf does not mention anything about running ftp servers or proftpd. I guess it's running in stand-alone mode.

I'm thinking about following the advise of Krugger.

But before I do that: Do you guys know any other FTP-servers which I can try instead of ProFTPd? I just need a simple FTP-server, which can serve some files to my users. Don't need any fancy options. It should be easy to configure and maintain.

:D

darthtux 10-03-2004 03:45 AM

Try:

/usr/local/sbin/proftpd stop

and

/usr/local/sbin/proftpd start

Maarten_Holland 10-03-2004 04:22 AM

FTP still is active after /usr/local/sbin/proftpd stop. I tried /usr/local/sbin/ftpshut and /usr/local/sbin/ftpshut -l 1
but that keeps saying 'Invalid time interval specified'.

darthtux 10-03-2004 04:47 AM

ps aux | grep proftpd

kill [pid of proftpd]
which is the number in the second column. And then

/usr/local/sbin/proftpd

Take a look at man proftpd.

Maarten_Holland 10-03-2004 05:48 AM

Thank you for your reply darthtux,

I've stopped ProFTPd this way and started it with /usr/local/sbin/proftpd start -c /etc/proftpd.conf. After that, my changes to /etc/proftpd.conf were applied!

Strange that /usr/local/sbin/proftpd stop did not stop the server... :confused:

I will take a look at the man pages, but I find them hard to use. I can't really find my way in using them.

darthtux 10-03-2004 06:11 AM

Not all daemons have "start" and "start" options. Sometimes you have to kill the PID of the parent process. I suspect the start you had in the last command was ignored.

You might find more help with commands by picking up the book Linux in a Nutshell or check out the links in my sig.


All times are GMT -5. The time now is 06:52 PM.