[ubuntu] vsftpd virtual users / pam

Pagina: 1
Acties:
  • 220 views sinds 30-01-2008
  • Reageer

Onderwerpen


Acties:
  • 0 Henk 'm!

  • Sosabowski
  • Registratie: Juni 2003
  • Laatst online: 13:37
Ik probeer vsftpsd te installeren en zou graag gebruik willen maken van de virtual users optie.
Ik volg netjes de handleiding die hier zo staat. Vsftpd werkt prima alleen krijg ik het virtual user gedeelte niet aan de gang.
db_load -T -t hash -f logins.txt /etc/vsftpd_login.db
(Requires the Berkeley db program installed).
NOTE: Many systems have multiple versions of "db" installed, so you may
need to use e.g. db3_load for correct operation. This is known to affect
some Debian systems. The core issue is that pam_userdb expects its login
database to be a specific db version (often db3, whereas db4 may be installed
on your system).
Dit heb ik geprobeerd met db4 (was standaard geinstalleerd) en db3 (gedownload en geinstalleerd) zonder resultaat.
auth required /lib/security/pam_userdb.so db=/etc/vsftpd_login
account required /lib/security/pam_userdb.so db=/etc/vsftpd_login
hier missen de .db extensies. Met of zonder .db, maakt geen moer uit.
cp vsftpd.pam /etc/pam.d/ftp
Hier was nogal wat over te doen zie onder andere deze bug report. Maar zowel het aanpassen van pam_service_name als het hernoemen van het betreffende.pam bestandje leverde niks op.
Mijn vsftpd.conf ziet er uit zoals het voorbeeld allen draait ie bij mij via inetd ipv standalone. Ook heb ik het poortnummer aangepast naar 21.
Inloggen met linux user accounts (zoals mijn eigen) werkt prima. Een user/pass combinatie zoals die in logins.txt staat werkt niet.
dit zegt de ftp client:
Connected to localhost:21
220 (vsFTPd 2.0.1)
USER tom
331 Please specify the password.
PASS xxxx
530 Login incorrect.
Disconnecting from site localhost
stukje uit /var/log/auth.log:
Apr 8 14:55:21 localhost vsftpd: (pam_unix) check pass; user unknown
Apr 8 14:55:21 localhost vsftpd: (pam_unix) authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=127.0.0.1
Ik zit redelijk met mn handen in het haar terwijl dit toch niet zo moeilijk zou moeten zijn. Of ik zie iets doms over het hoofd of dit gaat mijn kleine beetje linux kennis te boven. In beide gevallen zou ik wel wat hulp kunnen gebruiken. Alvast bedankt.

The whole problem with the world is that fools and fanatics are always so certain of themselves, and wiser people so full of doubts. -- Bertrand Russell


Acties:
  • 0 Henk 'm!

  • Sosabowski
  • Registratie: Juni 2003
  • Laatst online: 13:37
Schop!

Kom op; niemenad? Ik kan me niet voostellen dat er niemand is die ervaring heeft met vsftpd.

The whole problem with the world is that fools and fanatics are always so certain of themselves, and wiser people so full of doubts. -- Bertrand Russell


Acties:
  • 0 Henk 'm!

  • Sosabowski
  • Registratie: Juni 2003
  • Laatst online: 13:37
schopje? Vertel me alsjeblieft niet dat dit een zoek vraagje is of dat de startpost te weinig info bevat.

The whole problem with the world is that fools and fanatics are always so certain of themselves, and wiser people so full of doubts. -- Bertrand Russell


Acties:
  • 0 Henk 'm!

Verwijderd

IorGie schreef op vrijdag 08 april 2005 @ 15:01:
uth required /lib/security/pam_userdb.so db=/etc/vsftpd_login
Moet daar geen auth staan?

Authentication wordt nu dan ook door pam_unix afgehandeld:
Apr 8 14:55:21 localhost vsftpd: (pam_unix) check pass; user unknown

Acties:
  • 0 Henk 'm!

  • igmar
  • Registratie: April 2000
  • Laatst online: 03-09 22:58

igmar

ISO20022

DrArcHeH's opmerking is correct, en weet je ook zeker dat de PAM servicenaam 'ftp' is ?

Acties:
  • 0 Henk 'm!

  • Sosabowski
  • Registratie: Juni 2003
  • Laatst online: 13:37
Helaas was die "a" alleen weggevallen in mijn post, niet in het bestand. Helaas dus niet de oplossing.
@igmar: Eeeuuh hoe kom ik daar achter?

[ Voor 6% gewijzigd door Sosabowski op 02-05-2005 11:53 ]

The whole problem with the world is that fools and fanatics are always so certain of themselves, and wiser people so full of doubts. -- Bertrand Russell

Pagina: 1