Help - Search - Members - Calendar
Full Version: How can i switch to pure-ftpd?
The Planet Forums > Control Panels > cPanel/WHM
delatoy
Hi!
due to the recent security problems (see WHM/cpanel news) of "proftp" i would like to switch to "pure-ftp".

unfortunately it doesnt work! still proftp is been displayed and used.


what i have done so far:

1. tried to switch to "pure-ftpd" by clicking the button.
Main >> Service Configuration >> FTP Configuration
==> result: no change!

2. restarted ftp-server
==> result: no change!

3. edited the setup option FTPTYPE-0 from <proftpd> to <pure-ftpd>
Main >> Server Setup >> Edit Setup
==> result: no change!

4. restarted ftp-server
==> result: no change!

output result by restarting ftp-service ( /scripts/resproftpd ):
---
Waiting for ftpserver to restart.... . . . . . . . . . . finished.

ftpserver status nobody 13230 0.0 0.2 4276 2128 ? S 19:13 0:00 proftpd: (accepting connections)

ftpserver started ok

---


..............................any idea / help ?

Frank
KTFCC
Cpanel is like windows you must reinstall to get it to work sometimes.

However it being on Linux there are other ways reinstalling cpanel is the easy est though. IN my opinion.
challii
Or you could just open a ticket with them and get them to do it icon_smile.gif
KTFCC
ahh but that is cheating and what is the fun in that.
timdorr
What happens if you run "/scripts/ftpup pure-ftpd" from the command line?
delatoy
QUOTE (timdorr)
What happens if you run "/scripts/ftpup pure-ftpd" from the command line?


thank you for some helpful idea.

the script outputs this:
CODE
Ftp Setup Script Version 5.0

This is the pure-ftpd 1.0.20 installer release number 9.tls for platform redhat AS-3

rpmdb: Program version 4.2 doesn't match environment version

error: db4 error(22) from dbenv->open: Invalid argument

error: cannot open Packages index using db3 - Invalid argument (22)

error: cannot open Packages database in /var/lib/rpm

Traceback (most recent call last):

 File "/usr/sbin/up2date", line 1174, in ?

   sys.exit(main() or 0)

 File "/usr/sbin/up2date", line 656, in main

   ret = sanityChecks(fromDaemon, hasGui)

 File "/usr/sbin/up2date", line 288, in sanityChecks

   if cfg["useGPG"] and gpgUtils.checkGPGInstallation() == 2:

 File "gpgUtils.py", line 31, in checkGPGInstallation

 File "gpgUtils.py", line 75, in findKey

 File "rpmUtils.py", line 102, in installedHeadersNameVersion

TypeError: rpmdb open failed

Resetting pure-ftpd to cPanel Defaults and Installing the Latest Version

--20:52:24--  http://diff.cpanel.net/ftpinstall/pure-ftpd/redhat/AS-3/pure-ftpd-1.0.20-9.tls.i386.rpm

          => `pure-ftpd-1.0.20-9.tls.i386.rpm'

Resolving diff.cpanel.net... done.

Connecting to diff.cpanel.net[69.90.250.34]:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 208,458 [application/x-rpm]



100%[====================================>] 208,458      634.18K/s    ETA 00:00



20:52:25 (634.18 KB/s) - `pure-ftpd-1.0.20-9.tls.i386.rpm' saved [208458/208458]



rpmdb: Program version 4.2 doesn't match environment version

error: db4 error(22) from dbenv->open: Invalid argument

error: cannot open Packages index using db3 - Invalid argument (22)

error: cannot open Packages database in /var/lib/rpm

rpmdb: Program version 4.2 doesn't match environment version

error: db4 error(22) from dbenv->open: Invalid argument

error: cannot open Packages database in /var/lib/rpm

Waiting for ftpserver to restart..............finished.



nobody   17827  0.0  0.2  4280 2128 ?        S    20:52   0:00 proftpd: (accepting connections)



ftpserver started ok

Install Complete


some additional info:
if i look in my rpm database for installing "pureftp" myself the list is empty.
Main >> Software >> Install an RPM
i tried to correct this by rebuilding the rpm database
==> Complete - BUT WITH NO RESULT OR CHANGE!

sys info:
WHM 9.9.8 cPanel 9.9.8-R119
RedHat Enterprise 3 i686 - WHM X v3.1.0


Apache Security/Version Table
Module Latest Version Installed Version Status
Apache Core 1.3.33 1.3.33
Passthrough Authentication 1.8 1.8
Bytes Logger 1.2 1.2
Bandwidth Limiter 1.4 1.4
PHP 4.3.9 4.3.9
FrontPage 5.0.2.2634a 5.0.2.2635
mod_ssl 2.8.22 2.8.22
OpenSSL 0.9.7a 0.9.7a


.................should i contact the servermatrix support or the cpanel support now?

thx
kfukasawa
Open up a support ticket, through Orbit, we will be able to help you sort this out. In the mean time, this should get you started.

You will need to rebuild the RPM database. You can run these commands to get this done.

CODE
rm -f /var/lib/rpm/__db.*

rpm --rebuilddb


That should get you past the RPM error.
xenneo
QUOTE (challii)
Or you could just open a ticket with them and get them to do it icon_smile.gif


CHEATER!! lol, but that costs 1 hour admin time ^_^, and its kind of a waste of your hour considering it took me a whole 5 min to do this.
challii
I meant a ticket with cPanel. as it says any customers that have problems they will sort it out as it is quite a major security bug!
delatoy
@kfukasawa:
i opened a support ticket now cause there are coming up more and more problems...

i have executed your code. now i got this error message by rebuilding the rpm:
---
Error Message:
Please run rhn_register (or up2date --register on Red Hat Enterprise Linux 3 or later) as root on this client
Error Class Code: 9
Error Class Info: Invalid System Credentials.
Explanation: An error has occurred while processing your request. If this problem persists please enter a bug report at bugzilla.redhat.com. If you choose to submit the bug report, please be sure to include details of what you were trying to do when this error occurred and details on how to reproduce this problem.

---

PS: as you may see i am not very experienced with linux, so i dont know what i should do in this cases.
i hope theplanet will do this for me... lets see! :-)
challii
I think you'll find thats something only TP can fix. basically someone forgot to put the registration information in that allows you to connect to the redhat network.

You might on the ticket also ask them to make sure that everything is up2date and that the kernel is the latest supported version. This should all be done FoC as it is part of silver services.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.