|
From: Alessandro C. <a.c...@ti...> - 2006-05-26 21:00:57
|
Bruce, Anonynous works fine (if enabled in vsftpd.conf), I've enabled and checked my syslog and this is what I get: (in case of user that is NOT in vsftpd.users) Apr 27 17:50:51 src@lucyfer vsftpd: Thu Apr 27 17:50:51 2006 [pid 1413] CONNECT: Client "11.0.0.20" Apr 27 17:50:51 src@lucyfer vsftpd: Thu Apr 27 17:50:51 2006 [pid 1412] [root] FAIL LOGIN: Client "11.0.0.20" (in case of user that is in vsftpd.users) Apr 27 17:51:39 src@lucyfer vsftpd: Thu Apr 27 17:51:39 2006 [pid 1417] CONNECT: Client "11.0.0.20" Apr 27 17:51:39 src@lucyfer vsftpd: pam_listfile(vsftpd:auth): Refused user root for service vsftpd Apr 27 17:51:41 src@lucyfer vsftpd: Thu Apr 27 17:51:41 2006 [pid 1416] [root] FAIL LOGIN: Client "11.0.0.20" in Both cases I still get the error '530 Login refused'. I'll try your pam scripts... ----- Original Message ----- From: "Bruce Smith" <bw...@ar...> To: <dev...@li...> Sent: Wednesday, May 24, 2006 9:15 PM Subject: Re: [Devil-Linux-discuss] Vsftpd - Login incorrect > Did you check the logs, as I suggested before, to make sure you're not > wasting your time with pam? I hate to "assume" pam is the problem, only > to waste a ton of time and find it was something else later. > > Also, does anonymous access work? > > When you get this working, PLEASE send us your pam file (or whatever it > turns to out be causing the problem) so we can add it to the DL CD. *** > > I'm not a pam expert either, but here are some examples that may help: > > >>From a SuSE 10.1 box of mine: > > ====================================================================== > #%PAM-1.0 > > # Uncomment this to achieve what used to be ftpd -A. > # auth required pam_listfile.so item=user sense=allow > file=/etc/ftpchroot onerr=fail > > auth required pam_listfile.so item=user sense=deny > file=/etc/ftpusers onerr=succeed > # Uncomment the following line for anonymous ftp. > #auth sufficient pam_ftp.so > auth required pam_unix2.so > auth required pam_shells.so > account required pam_unix2.so > password required pam_unix2.so > session required pam_unix2.so > ====================================================================== > > >>From the vsftpd source tarfile, example for a "Redhat" system: > > ====================================================================== > #%PAM-1.0 > auth required /lib/security/pam_listfile.so item=user sense=deny > file=/etc/ftpusers onerr=succeed > auth required /lib/security/pam_pwdb.so shadow nullok > auth required /lib/security/pam_shells.so > account required /lib/security/pam_pwdb.so > session required /lib/security/pam_pwdb.so > > ====================================================================== > > > Virtural Users example from the vsftpd source tarfile: > > ====================================================================== > auth required /lib/security/pam_userdb.so db=/etc/vsftpd_login > account required /lib/security/pam_userdb.so db=/etc/vsftpd_login > ====================================================================== > > - BS > > >> I suspected that, but I don't know anything about PAM. >> >> I had allready tried to add that line and create an vsftpd file in >> /etc/pam.d/ but I don't know exactly what comands I need to put in that >> file. Do you have an Idea? >> >> I tried this : >> >> auth sufficient pam_ftp.so >> auth required pam_unix_auth.so use_first_pass >> auth required /lib/security/pam_listfile.so item=user sense=deny >> file=/etc/vsftpd.users onerr=succeed >> >> the user I'm trying to login with is not in the /etc/vsftpd.users file... >> >> Is that ok? > >> Ciao >> >> ----- Original Message ----- >> From: "Bruce Smith" <bw...@ar...> >> To: <dev...@li...> >> Sent: Tuesday, May 23, 2006 10:41 PM >> Subject: Re: [Devil-Linux-discuss] Vsftpd - Login incorrect >> >> >> >> I've configured my brand new Devil-Linux 1.2.9 (I was ugrading from an >> >> old >> >> version) and configuring vsftpd I keep getting the same problem: >> >> >> >> Any user I try to login (even root!) I get "530 Login Incorrect". >> > >> > I suspect it has something to do with PAM. >> > Check your syslog messages and/or dmesg for a better error message. >> > >> > Or try adding this line to your vsftpd.conf file: >> > >> > >> > pam_service_name=vsftpd >> > >> > >> > - BS > > > > > ------------------------------------------------------- > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat certifications in > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 > _______________________________________________ > Devil-linux-discuss mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/devil-linux-discuss |