PureFTP user accounts
Hi,
I'm trying to set up an ftp user-accounts for each of my shell users. As far as I was aware, this was as easy as installing an ftp daemon, running it and logging in as one of the shell users. Well I can do the first two things, but unfortunately I cant login as ANY of the shell users, not even root. I have tried using both proftpd and pureftpd but none have been able to do this. I dont want to create a virtual user, I just want every shell user to have access to their /home/username/ directory and for it to be chrooted on login. What am I missing here? |
Is FTP even running or listening? What errors are you recieving, does it ever prompt for a username/password?
|
I can see the server daemon running, and I can connect both from the server and externally.
Heres what happens when I issue the command 'ftp localhost'.. Code:
s15229711:~# ftp localhost |
Hi guys
I have recently ordered a server from UK2.net for 99p :P I had them install Debian Stable on it, and was ready earlier on today. First things I did was disable thigns like apache2, bind, popd etc. Then I did aptitude install pure-ftpd For some reason it was being run by inetd, but that wasn't really a problem. I connect, type in my own username which I have just created, and my password, only to get the 530 Authentication Failed I'm 200% sure the password is correct, and have probably tried about a hundred times today. Things I tried was tinkering with the config folder, chaning 65unix to yes, 70pam to no, and so on and so on. I even purged pure-ftpd and re-installed it. Still no luck. Tried running /usr/sbin/pure-ftpd -l unix & but nope. So, I had another idea: I delete that and compile pure-ftpd from source! download the latest source from http://download.pureftpd.org/pub/pure-ftpd/releases/ went into the untarred folder: Code:
./configure --prefix=/opt/pure-ftpd --with-ftpwho Most of the time while I was checking I had another Putty window open, logged in as non-root and did ftp localhost I got all the banners and username/password prompts, but always the 530 Authentication Error. I would really appreciate any ideas. It will probably turn out to be the most obvious solution and it has been staring me in the face for the past few hours it has been baffling me. Thanks in advance |
Update - I have resolved my issue
I removed the compiled version of pure-ftpd that I built. Did as root: Code:
aptitude install pure-ftpd Log in as myself via Filezilla and it worked perfect. I'm sure I have done this before, but it is possible I have made a typo somewhere or tinkered too much. I hope information helps other people with similar problems. |
Quote:
I then tried to un-install, purge and re-install but it still cant connect- not remotely or even from within the server. I'm gonna try compiling from source incase there's something up with the debian package. |
Quote:
Edit /etc/default/pure-ftpd-common and change STANDALONE_OR_INETD=whatever-it-is to standalone In addition to that, go to /etc/inetd.conf and comment out the ftp line - if it exists in there. Restart pure-ftpd with /etc/init.d/pure-ftpd restart Or run pure-ftpd with your own settings: /etc/init.d/pure-ftpd stop and then /usr/sbin/pure-ftpd & and see how that works. Also make sure your firewall isn't getting in the way :) |
All times are GMT -5. The time now is 11:22 PM. |