heloo there....
i got some little stress....
i have been trying many.. times.., and result is same failed.. :(
ok now i will explain that i do with more detail...
if u got some is wrong, warn me...
1. i get Linux-PAM-0.75.tar.gz and got to extract..
ekto-linux:/home/admin/bin/vsftpd_911 # ls
.. Linux-PAM-0.75.tar.gz pam_pwdfile-0.99.tar.gz
ekto-linux:/home/admin/bin/vsftpd_911 # tar xzvf Linux-PAM-0.75.tar.gz
[extracting proses]
ekto-linux:/home/admin/bin/vsftpd_911 # ls
.. Linux-PAM-0.75 Linux-PAM-0.75.tar.gz pam_pwdfile-0.99.tar.gz
2. ok now extract pam_pwdfile-0.99.tar.gz and move on to the Linux-PAM-0.75
ekto-linux:/home/admin/bin/vsftpd_911 # tar xzvf pam_pwdfile-0.99.tar.gz
[extracting proses]
ekto-linux:/home/admin/bin/vsftpd_911 # ls
.. Linux-PAM-0.75 Linux-PAM-0.75.tar.gz pam_pwdfile-0.99 pam_pwdfile-0.99.tar.gz
ekto-linux:/home/admin/bin/vsftpd_911 # mv pam_pwdfile-0.99 Linux-PAM-0.75/modules
ekto-linux:/home/admin/bin/vsftpd_911 # cd Linux-PAM-0.75/modules
ekto-linux:/home/admin/bin/vsftpd_911/Linux-PAM-0.75/modules # ls | grep pam_pwdfile
pam_pwdfile-0.99
3. now prepare Linux-PAM, create link default.defs
ekto-linux:/home/admin/bin/vsftpd_911/Linux-PAM-0.75 # ls | grep default.defs
[no result]
ekto-linux:/home/admin/bin/vsftpd_911/Linux-PAM-0.75 # ln -s defs/suse.defs default.defs
ekto-linux:/home/admin/bin/vsftpd_911/Linux-PAM-0.75 # ls -l | grep default.defs
lrwxrwxrwx 1 root root 14 2006-03-10 07:32 default.defs -> defs/suse.defs
4.next move using "make all", get pam_pwdfile.so and copied on to folder /lib/security
ekto-linux:/home/admin/bin/vsftpd_911/Linux-PAM-0.75 # ls modules/pam_pwdfile-0.99 | grep so
pam_pwdfile.so
ekto-linux:/home/admin/bin/vsftpd_911/Linux-PAM-0.75 # cp modules/pam_pwdfile-0.99/pam_pwdfile.so /lib/security
ekto-linux:/home/admin/bin/vsftpd_911/Linux-PAM-0.75 # ls /lib/security | grep pam_pwd
pam_pwdfile.so
5.ok now pam_pwdfile.so is being copied to /lib/security...
6.here is my /etc/pam.d/vsftpd
ekto-linux:/home/admin/bin/vsftpd_911/Linux-PAM-0.75 # cat /etc/pam.d/vsftpd
auth required pam_pwdfile.so pwdfile /etc/ftp_passwd
account required pam_permit.so
7.and my /etc/vsftpd.conf
ekto-linux:/home/admin/bin/vsftpd_911/Linux-PAM-0.75 # cat /etc/vsftpd.conf
anonymous_enable=NO
local_enable=YES
write_enable=NO
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
xferlog_file=/var/log/vsftpd.log
xferlog_std_format=YES
pam_service_name=vsftpd
connect_from_port_20=YES
ftpd_banner=Welcome to S_ FTP server.
chroot_local_user=YES
guest_enable=YES
guest_username=virtual
8.create user name is virtual...
ekto-linux:/home/admin/bin/vsftpd_911/Linux-PAM-0.75 # useradd virtual -d /home/ftpsite -s /bin/false
ekto-linux:/home/admin/bin/vsftpd_911/Linux-PAM-0.75 # cat /etc/passwd | grep virtual
virtual:x:1004:100::/home/ftpsite:/bin/false
9.create plaintext with format username:password
ekto-linux:/home/admin/bin/vsftpd_911/Linux-PAM-0.75 # echo "linux:admin" > /etc/cleartext
ekto-linux:/home/admin/bin/vsftpd_911/Linux-PAM-0.75 # cat /etc/cleartext
linux:admin
ekto-linux:/home/admin/bin/vsftpd_911/Linux-PAM-0.75 # chmod go= /etc/cleartext
10.execute filter.pl to create format username:passwordwithencryption and save to /etc/ftp_passwd
ekto-linux:/home/admin/bin/vsftpd_911/Linux-PAM-0.75 # cat /etc/ftp_passwd
linux:$1$hzP3IVL4$o2nX2mdDulip.yaW6vaT30
11.then restart xinetd
ekto-linux:/home/admin/bin/vsftpd_911/Linux-PAM-0.75 # /etc/init.d/xinetd restart
Shutting down xinetd: done
Starting INET services. (xinetd)
12.try to login ftp with user linux and password admin and still failed..
ekto-linux:/home/admin/bin/vsftpd_911/Linux-PAM-0.75 # ftp localhost
Trying 127.0.0.1...
Connected to localhost.
220 Welcome to S_ FTP server.
Name (localhost:admin): linux
331 Please specify the password.
Password:
530 Login incorrect.
ftp: Login failed.
ftp>
13.but if i used real user in my system it's success to login
ekto-linux:/home/admin/bin/vsftpd_911/Linux-PAM-0.75 # ftp localhost
Trying 127.0.0.1...
Connected to localhost.
220 Welcome to S_ FTP server.
Name (localhost:admin): admin
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
14.but i got some strange, why i have 2 vsftpd binary..?? it's same with u ??
ekto-linux:/home/admin/bin/vsftpd_911/Linux-PAM-0.75 # locate vsftpd | grep usr
/usr/local/bin/vsftpd
/usr/local/man/man5/vsftpd.conf.5
/usr/local/man/man8/vsftpd.8
/usr/local/sbin/vsftpd
ekto-linux:/home/admin/bin/vsftpd_911/Linux-PAM-0.75 # ls -l /usr/local/sbin | grep vsftpd
-rwxr-xr-x 1 root root 84068 2005-12-21 07:11 vsftpd
ekto-linux:/home/admin/bin/vsftpd_911/Linux-PAM-0.75 # ls -l /usr/local/bin | grep vsftpd
-rwxr-xr-x 1 root root 84068 2005-12-21 07:12 vsftpd
15.when i use ldd to my vsftpd, there is nothing lib from pam... it's same with u???
ekto-linux:/home/admin/bin/vsftpd_911/Linux-PAM-0.75 # ldd /usr/local/bin/vsftpd
linux-gate.so.1 => (0xffffe000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x40033000)
libdl.so.2 => /lib/libdl.so.2 (0x40066000)
libnsl.so.1 => /lib/libnsl.so.1 (0x4006a000)
libresolv.so.2 => /lib/libresolv.so.2 (0x4007f000)
libutil.so.1 => /lib/libutil.so.1 (0x40092000)
libcap.so.1 => /lib/libcap.so.1 (0x40096000)
libc.so.6 => /lib/tls/libc.so.6 (0x4009a000)
/lib/ld-linux.so.2 (0x40000000)
ok may be is can explain to that i do...
waiting of your comment....
thx before..
Hello! :) Ok.....things ar
Hello! :)
Ok.....things are becoming more and more confusing.......don't know what is the exact problem.
- I am working on Fedora....don't know what will be the paths and settings in Suse.
- One thing that is confusing me is that in every line you have :
"ekto-linux:/home/admin/bin/vsftpd_911/Linux-PAM-0.75"
Are you working from this folder?...i.e. you are inside this folder?
- The path of my vsftpd binary is given in /etc/xinetd.d/vsftpd file in front of "server" option and the path is:
"/usr/sbin/vsftpd"
and i have only one vaftpd file there.
- Again in the same file in option "server_args" i have :
"/etc/vsftpd/vsftpd.conf"
- In /etc i have created separate folder for "vsftpd" so that its documents are not confused.
- Similarly in /etc/pam.d/vsftpd is a single file.
- "vsftpd.conf" and "ftp_passwd" are also created in /etc/vsftpd folder.
- If you can login through local users, it means that the file /etc/pam.d/vsftpd is not read, becoz the file it indicates for password authentication does not include local users allowed.
- Check if you have any other file within the folder having the same name or whether pam is used or not.
- I haven't created any site like ftpsite that you showed, i have just created a local user having a home directory and its name is given in guest_username.
- Password conversion is successful in my point of view.Just you don't have to change the conversion.Whenever you try to login use your original password.
----- The point that seems to be most important here is that i think your /etc/pam.d/vsftpd is not read, hope you restart the service every time you make changes
-In /lib/security folder i have all my pam files.
Try one thing....remove vsftpd from /etc/pam.d and restart the service, see if any error is indicated or not.If not it means that your file is not used
heloooo ok.. sorry if u co
heloooo
ok.. sorry if u confused. with "ekto-linux:/home/admin/bin/vsftpd_911/Linux-PAM-0.75"
in here iam just working from in this folder, because i don't like many command like do cd /etc after moving do pico vsftpd.conf
so i just want to instant just do pico /etc/vsftpd.conf> so i always stay in this folder..
ok i will try again...
and i send here for result...
thx for attention... :)
WORKING NOW.....
yesss
it's working now.....
i just recompile the vsftpd....
then use ldd to check if new binary load libpam...
yes, libpam is loaded with binary,, vsftpd..
big ... thank for your reply....
you have email...
maybe i want,, ask another question about linux.. to you..
oh yeah.. send ur email to ekarudito@telkom.net...
thanks......
Congrats :):):)
Hello! :)
Its very nice to know that your problem is solved......"A man always gets what he struggles for".
I am also a newbie for linux.....really don't know much about it...but yes it will be nice to help you or getting any type of help from you in future.
Yup....Happy Belated Birthday....sorry i noticed it today.
Best of Luck!
I am also getting the same error
Dear ,
I am also getting the same error . how did you get rid of it. please explain. I am usinf Redhat linux 3.0 and i am able to ftp from the machine but not to the machine.
Regards,
Chidambaram
may be u can more detail with
may be u can more detail with your error/problem...