I am running webmin 1.470 and virtualmin Version 3.67. I recently realised that I had not configured my proftpd - and as this would not install via webmin I finally followed one of your forums and installed proftpd version 1.30.
This then allowed me full access to proftpd config via webmin and allowed me to telnet to port 21. As well as this a netstat -tanpu told me that port was open and listening. All good so far.
I then entered virtualmin and clicked one one of the virtual sites, and then added a new FTP user. But when I tried to login with the username I keep getting prompted for a password. I had created teh user with a password and so I entered this - but no matter what un/pw variations I try I keep getting blocked via my FTP client:
Why is this not authenticating the pw - is there perhaps a path wrong in the config that I have missed (where do virtual hosts add FTP users and pw’s)??
The FTP usernames and passwords are kept with the rest of the system users (in /etc/passwd and shadow by default).
It looks like it doesn’t think the username or password is right – you can verify those by going into Edit Mail and FTP Users, and click the username in question.
I’d verify that the username is spelled correctly in there, and you can also verify the password on that screen.
Unfortunately thats not the solution - I have double and triple checked username and password combos by doing exactly what you suggest - it just wont authenticate!
I had a look in teh /etc/passwd file and I can see the user as well - the line looks like:
I’ve occasionally seen third party ProFTPd packages with broken PAM configuration (or other issues). Where did you get your new ProFTPd version from? Our ProFTPd packages are known to work…many others are known to not work.
Eric : Its all users that I create it’s a problem with the full proftpd module…
I checked the /var/log/secure and see:
Jun 23 15:31:17 onduline proftpd: Deprecated pam_stack module called from service “proftpd”
Jun 23 15:31:17 onduline unix_chkpwd[27305]: password check failed for user (diankeftp.dianke)
This may be beacuse as Joe says it is an incorrect version. The rpm I think I downloaded from a link in these forums - the rpm name is proftpd-1.3.0a-3.el4.i386.rpm. I have CentOS - can you provide a working FTP rpm that I can try? Also please let me know how I uninstall the non working rpm from webmin and re-install the new one.
I am using CentOS 5.2 so will be using proftpd-1.3.0a-3.el4.i386.rpm - which is exactly what I installed the first time???
You have a third party repository configured that we have no control over. Maybe it works, maybe it doesn’t. We don’t know, and we can’t do anything about it, even if it is broken.
Edit: Oops. Actually, that is our package. Sorry. It should work.
2nd Edit for clarity: We usually build our packages with a “vm” in the version string, but in the case of straight rebuilds from EPEL we use the normal version string, so I’ll know (and others can know) that it’s a straight rebuild of the EPEL package with no changes.
I have had similar problems on several machines. I believe (meaning I have not verified) it is related to some perl updates. Here’s what I did and roughly where it happened:
Build CentOS 5.2 box
yum -y update yum (to get fastest mirror)
yum -y update (brings machine to CentOS 5.3)
wget virtualmin GPL install.sh
run install.sh
run virtualmin updates, brings webmin to 1.480 and virtualmin to 3.72
create bogus domain (to catch invalid http requests, separate topic)
create real domain
At this time I have a working box and proftpd works fine.
Then I wanted to install TWiki and updated perl. I believe something in this list caused proftpd to break.
webmin > system > software packages > install gcc
in shell perl -MCPAN -e script, answer geographic prompts and exit
webmin > others > perl modules >> suggested modules
4 modules not installed, install one at a time, I think order is 4 3 1 2, Authen::PAM gave me a lot of trouble with prerequisites, got past that
Note: updating along the way did result in a mix of perl CPAN updates and yum updates, observed by some to be a bad mix
installed application package (TWiki) that required perl
identified and installed additional perl modules required by the package
started working with the package and otherwise left the update process
went to ftp something to the site and got access denied
checked logs and found authorization message referred to above
Since I’m not a heavy ftp user, this could wait. But I’ve broken 3 machines this way.
Patient: It hurts when I do this
Doctor: Well, don’t do that
Repositories for both yum and perl / CPAN are only what is installed by default, nothing special added.
If I get time, I will try to recreate and identify at what step in the process the proftpd breaks.