Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

proftpd und Postfix User per Mysql administrieren

Empfohlene Antworten

Veröffentlicht

Moinsen.

Folgende Frage.

Ich habe auf meinem Server Debian 3.1 und Webmin und habe dort den proftpd und den postfix server installiert.

Jetzt möchte ich gerne wissen wie und wo ich einstelle das ich die FTP und Mail User in einer Mysql Datenbank definieren und eintragen kann.

Ich weiß auch nicht ob das geht, aber man sagte mir das es geht.

Gruß

Evilmachine

Das ist richtig!

Webserver-Adminwebinterfaces wie etwa syscp oder vhcs2 verwenden ja dieses Feature...

AFAIR gibt es unter Debian für proftpd ein eigenes proftpd-mysql paket.

Da dürfte dann eigentlich nur noch die proftpd.conf angepasst werden müssen :)

/etc/proftpd.conf: (Auszug)

 

    SQLAuthTypes Crypt Plaintext

    SQLAuthenticate users* groups*

    SQLConnectInfo <user> <datenbank> <password>

    SQLUserInfo ftp_users username password uid gid homedir shell

    SQLGroupInfo ftp_groups groupname gid members

    SQLUserWhereClause "login_enabled = 'y'"

    # SQLUserInfo und SQLGroupInfo enthalten die Tabellen und Spaltennamen wo     

    # proftpd die Daten finden kann, hier auf syscp angepasst weil die config aus der 

    # maschine mit syscp ist


    SQLLog PASS login

    SQLNamedQuery login UPDATE "last_login=now(), login_count=login_count+1 WHER

E username='%u'" ftp_users


    SQLLog RETR download

    SQLNamedQuery download UPDATE "down_count=down_count+1, down_bytes=down_byte

s+%b WHERE username='%u'" ftp_users


    SQLLog STOR upload

    SQLNamedQuery upload UPDATE "up_count=up_count+1, up_bytes=up_bytes+%b WHERE

 username='%u'" ftp_users

Bei postfix müssen da etliche config dateien angelegt bzw angepasst werden, da kann dir aber die Dokumentation von Syscp auf deren Seite vielleicht weiterhelfen...

lg

Wastl

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.