Delete PureFTP and ProFTP completely.

altendew

Member
Sep 27, 2005
23
0
151
I can not find a button to remove PureFTP and ProFTP.

I want to remove them so I can reinstall them with my own settings.
How can I delete them?

Besides manually deleting each file through ssh.

Thanks,
Andrew
 

sawbuck

Well-Known Member
Jan 18, 2004
1,365
8
168
cPanel Access Level
Root Administrator
rpm -e "package name.rpm" is the normal way to remove packages on an rpm based system. If you receive any errors regarding dependencies then I would be cautious about uninstalling. Can also do rpm -e --test "package-name".rpm before simply deleting a package.

rpm --help from the command line will give you all available switches.

Couldn't say for sure if that will remove all traces from a cPanel install. Likely you will still have some config files in /etc.
 

altendew

Member
Sep 27, 2005
23
0
151
This is kind of weird.. got these errors


[email protected] [~/downloads]# rpm -e pure-ftpd-1.0.20-17.tls.i386.rpm
error: package pure-ftpd-1.0.20-17.tls.i386.rpm is not installed
[email protected] [~/downloads]# rpm -e proftpd-1.2.10tls-9_linuxprivs_newinit.i386.rpm
error: package proftpd-1.2.10tls-9_linuxprivs_newinit.i386.rpm is not installed

I know those are the right packages because I copied it when I ran

./ftpup --force
&
./ftpup pure-ftpd --force
 

altendew

Member
Sep 27, 2005
23
0
151
ooh I get it.. I thought you had to do it on the install package.

Worked great, thank you.
 

altendew

Member
Sep 27, 2005
23
0
151
hmm this is what I got..

tftp-server-0.39-0.EL3.1
lftp-2.6.3-5
vsftpd-1.2.1-3E.1
tftp-0.39-0.EL3.1
ftp-0.17-17
 

webignition

Well-Known Member
Jan 22, 2005
1,880
0
166
altendew said:
hmm this is what I got..

tftp-server-0.39-0.EL3.1
lftp-2.6.3-5
vsftpd-1.2.1-3E.1
tftp-0.39-0.EL3.1
ftp-0.17-17
If you get that before uninstalling anything, that would indicate that you don't have either PureFTP or ProFTP installed.
 

sawbuck

Well-Known Member
Jan 18, 2004
1,365
8
168
cPanel Access Level
Root Administrator
Let's backup a second.

You did rpm -e pure-ftpd and rpm -e pro-ftpd as NightStorm suggested, right?

What indication do you have that they are still installed?
 

altendew

Member
Sep 27, 2005
23
0
151
I have just came to the conclusion that it is impossible to install my own version of pure-ftpd.. it would of BEEN so easy if I could just add users to a mysql database. Work perfect with my PHP scripts.. but it just seems helpless.. its so mest up that my cpanel ftp configuration does not work. Just a big mess.

I need an expert to-do it for me :)
 

sparek-3

Well-Known Member
Aug 10, 2002
1,983
218
343
cPanel Access Level
Root Administrator
One solution might be to configure the CPanel PureFTP installation to run off of another port. Then install your FTP daemon software and set it up to work on the regular FTP ports. You can use a firewall, such as IPtables to block traffic to the CPanel PureFTP installation, so that it is not used. This may not be possible if you are trying to install an RPM based package of PureFTP (or ProFTP) since CPanel will already have one of those installed.

I suspect that this might be an easier solution, because I think CPanel will automatically try to install the FTP software whenever it does a CPanel Update. So even if you uninstall PureFTP (or ProFTP) they will be re-installed when a CPanel Update begins.

Again, I'm not sure if this solution would work, but just throwing out another suggestion.
 

altendew

Member
Sep 27, 2005
23
0
151
Yeah I want my members to use port 21 though, every user will have his own ftp account generated by my php script. I like the thinking though :)
 

sparek-3

Well-Known Member
Aug 10, 2002
1,983
218
343
cPanel Access Level
Root Administrator
You could switch the CPanel version of the FTP daemon to use a different port (for arguments sake, say port 4294), and then install your FTP daemon to use port 21. You could then block access to port 4294 so that the CPanel FTP daemon isn't accessible.

Again, I don't know if this would work or not, but I don't think CPanel updates ever mess with the FTP configuration files (unless you reinstall the FTP software), so you should be safe from any issues that you might encounter when you run CPanel updates. Again, this is just a suggestion.
 

altendew

Member
Sep 27, 2005
23
0
151
Then what if I created a cron job to check for new ftp users created by cpanel.. just compare it against the other ftp accounts.. then add them to the new one.. then everything would be perfect. haha a lot of work to accomplish what I want.
 

webignition

Well-Known Member
Jan 22, 2005
1,880
0
166
altendew said:
I have just came to the conclusion that it is impossible to install my own version of pure-ftpd.. it would of BEEN so easy if I could just add users to a mysql database. Work perfect with my PHP scripts.. but it just seems helpless.. its so mest up that my cpanel ftp configuration does not work. Just a big mess.

I need an expert to-do it for me :)
I still don't see the problem. It looks like you merely want to go to all this effort just so that you can add FTP users via a PHP script.

I still think the best option in that case would be to find out how and where cPanel stores FTP user details and then set your PHP script to manage the users using the same method instead of using a MySQL database. This would let you manage users via your PHP script and won't break FTP in cPanel.