fireman949 |
02-17-2004 07:53 PM |
Shadow passwords and ProFTP
I removed ProFTPd and re-compiled and installed it. Here are the parameters I used:
Code:
./compile \
--prefix=/www/proftpd \
--sysconfdir=/etc \
--mandir=/usr/share \
--localstatedir=/var \
--with-modules=mod_rewrite:mod_log \
--enable-shadow
I used the /tmp/PFTEST/ files to test it and I can connect to 'ftp localhost 2021' and login with the user : pass = proftpd : proftpd.
So when I use the default /etc/proftpd.conf file, ftp localhost with a system user : password, it is telling me:
'530 Login Incorrect
Login failed.'
Code:
linuxbox.wallsfiredept.org (localhost[127.0.0.1]) - FTP session opened.
linuxbox.wallsfiredept.org (localhost[127.0.0.1]) - dispatching PRE_CMD command 'USER eric' to mod_rewrite
linuxbox.wallsfiredept.org (localhost[127.0.0.1]) - dispatching PRE_CMD command 'USER eric' to mod_core
linuxbox.wallsfiredept.org (localhost[127.0.0.1]) - dispatching PRE_CMD command 'USER eric' to mod_core
linuxbox.wallsfiredept.org (localhost[127.0.0.1]) - dispatching PRE_CMD command 'USER eric' to mod_auth
linuxbox.wallsfiredept.org (localhost[127.0.0.1]) - dispatching CMD command 'USER eric' to mod_auth
linuxbox.wallsfiredept.org (localhost[127.0.0.1]) - dispatching LOG_CMD command 'USER eric' to mod_log
linuxbox.wallsfiredept.org (localhost[127.0.0.1]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_rewrite
linuxbox.wallsfiredept.org (localhost[127.0.0.1]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_core
linuxbox.wallsfiredept.org (localhost[127.0.0.1]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_core
linuxbox.wallsfiredept.org (localhost[127.0.0.1]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_auth
linuxbox.wallsfiredept.org (localhost[127.0.0.1]) - dispatching CMD command 'PASS (hidden)' to mod_auth
linuxbox.wallsfiredept.org (localhost[127.0.0.1]) - USER eric (Login failed): Incorrect password.
linuxbox.wallsfiredept.org (localhost[127.0.0.1]) - dispatching LOG_CMD_ERR command 'PASS (hidden)' to mod_log
linuxbox.wallsfiredept.org (localhost[127.0.0.1]) - dispatching LOG_CMD_ERR command 'PASS (hidden)' to mod_auth
linuxbox.wallsfiredept.org (localhost[127.0.0.1]) - dispatching PRE_CMD command 'SYST' to mod_rewrite
linuxbox.wallsfiredept.org (localhost[127.0.0.1]) - dispatching PRE_CMD command 'SYST' to mod_core
linuxbox.wallsfiredept.org (localhost[127.0.0.1]) - dispatching PRE_CMD command 'SYST' to mod_core
linuxbox.wallsfiredept.org (localhost[127.0.0.1]) - dispatching CMD command 'SYST' to mod_core
linuxbox.wallsfiredept.org (localhost[127.0.0.1]) - dispatching LOG_CMD command 'SYST' to mod_log
I did some checking on the PFTEST.conf file (because that one worked) and found that it refered to :
Code:
AuthUserFile /tmp/PFTEST/PFTEST.passwd
AuthGroupFile /tmp/PFTEST/PFTEST.group
, however my /etc/proftpd.conf did not refer to an
AuthUserFile or
AUthGroupFile
and some others. I noticed that the PFTEST.passwd looked similar to the /etc/passwd file (only with less users)
and the PFTEST.group file looked simiar to the /etc/group file.
I am a linux :newbie: (to some extent) and am pretty sure the passwd and group file is where my problem lies...
can anyone point me in the right direction?
also, should I have used --enable-shadow? what exactly did I do?
|