Click to See Complete Forum and Search --> : having trouble with Pure-ftpd...


The_Drake_Noob
10-18-2002, 11:14 PM
Ok the server is in the xinetd, so It now autolaunches when I boot the computer. I have a router, and opened the apropriate ports, but I want to be able to log in anonymously, and with virtual users. Pure-ftpd handles this very weird, and when I try to load the virtual users config, heres what I get... I just want to go to ProFTP now... it looks a lot better, and I am running Redhat 8.0, just like the last fellow who posted about ProFTP

[root@localhost ___]# /usr/local/sbin/pure-ftpd -lpuredb: /etc/pureftpd.pdb
421 Missing virtual users file name
[1]+ Exit 252 /usr/local/sbin/pure-ftpd -l pureftpd.pdb

I dont know what this is all about, but I can't even log in anonymously... I can log in with root, or my other accounts, but I want virtual ones. If someone knows what's up, please holler, but if not I tried to uninstall the package with 'rpm -e pure-ftp*' in the corrrect directory as root, and it said error: package uninstalled, even when I do 'rpm -u pure-ftp*' it says 'error package already installed' as you can see I am a linux noob, but I have gotten my nvidia drivers installed, and run CS from WineX, so I am not totally dumb, hehe ;)
If any of you know whats going on, or If i should just throw out Pure-ftpd and use Pro-ftpd (which sounds better) please let me know how! Thx once again, The_Drake_Noob

BTW: I belive I did it correctly, becuse I looked on the official site about Virtual Users, and followed the directons, evern with the -m option while 'useradd' ing my Virtual user, so it would create the pureftpd.pdb file, and then I did 'pure-pw mkdb' to make sure that the file was updated. I installed the i686 rpm binary, as I have an Athlon XP 2200, and thats what it say's I have under KDE's proccesor tab (i686)...

The_Drake_Noob
10-19-2002, 10:41 AM
I uninstalled Pure-ftpd and tried Pro-ftpd... no luck still, and I have a router that the ports 21, and 20 are open and heres what I have tried...

I am a noob, and I have tried lots of things!!! look at this.

% sh sample-configurations/PFTEST.install
Sample test files successfully installed in /tmp/PFTEST.
% ./proftpd -n -d 5 -c /tmp/PFTEST/PFTEST.conf

then in a diff window to test it i do:

% ftp -n -d
ftp> open <hostname> 2021
ftp> user proftpd
---> USER proftpd
331 Password required for proftpd.
Password: [proftpd]
---> PASS proftpd
230 User proftpd logged in.
ftp>
But then once I add my 'proftpd' to the xined.d folder, and do a '/etc/init.d/xinetd restart' or that command with a 'stop' or 'start' to restart it, I cannot login at all, it just says
___@localhost ___]$ ftp 192.168.1.102
ftp: connect: Connection refused
ftp>
I entered this before when I had Pure-ftpd, and I could get in, but I am really puzzled now!!! I have done a 'ps -aux' and the proftpd proccess is infact running, and it says 'accepting incoming connections.' Please Help!

element-x
10-19-2002, 11:07 AM
In your first example you're using

"open <hostname> 2021"

and second example

"ftp <hostname>"


whereby, you're connecting to port 21, not 2021 and hence can be an error.


Now, another possibility, is that you're only listening on your external interface/ip and then that would mean you cannot connect via localhost/127.0.0.1

There are many possibilities.

The_Drake_Noob
10-19-2002, 01:54 PM
The 2021 port was to test if it was configured right. I know the default port to FTP is 21. You might be right about me not being able to connect to myself, because when I do, do 'ps -aux' it says listning for connections, or something of that sort. I will try now to connect from my bro's computer that is on the same network, with a linksys router.

I just tried connecting on my bro's comp, and it did NOT work. If anyone can help me with this matter, please post!!!

The_Drake_Noob
10-19-2002, 05:01 PM
attached is my file that I am using as proftpd.conf No matter what I do, Pro-ftpd won't let me login as 'anonymous' 'anonymous' or 'ftp' 'ftp' like in my file, from my computer, or my bro's which is on the network. Please Have a look at the file, and tell me what I am doing wrong, thx!!!

NOTE: when I try to use 'anonymous' 'anonymous' as my username and password, heres what I get...

[root@localhost bob]# ftp 192.168.1.102
Connected to 192.168.1.102 (192.168.1.102).
220 ProFTPD 1.2.6 Server (Linux Rules, M$ Sucks Donkey Flop!) [localhost.localdomain]
Name (192.168.1.102:bob): anonymous
331 Anonymous login ok, send your complete email address as your password.
Password:
530-Unable to set anonymous privileges.
530 Login incorrect.
Login failed.
ftp>


Wtf is going on here? hrmmm I dunno about this one, please help me!