Konfiguration von USERN in der Datei proftpd.conf

Alles, was den ProFTPD betrifft, kann hier besprochen werden.

Konfiguration von USERN in der Datei proftpd.conf

Postby netzer » 02. February 2005 10:12

Hallo,

ich möchte gerne verschiedene user hinzufügen die sich auf meinem FTP Server einloggen können.
Meine proftpd.conf sieht wie folgt aus:
----------------------------------------------------------------------------------------------------
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName "ProFTPD"
ServerType standalone
DefaultServer on

# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022

# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 30

# Set the user and group that the server normally runs at.
User ftp
#Group nogroup

# Normally, we want files to be overwriteable.
<Directory /home/ftp2/*>
AllowOverwrite on
</Directory>

# only for the web servers content
DefaultRoot /home/ftp2

# nobody gets the password "lampp"
# commented out by lampp security
#UserPassword nobody wRPBu8u4YP0CY
UserPassword nobody Elsk83sCmKzwc

# nobody is no normal user so we have to allow users with no real shell
RequireValidShell off

# nobody may be in /etc/ftpusers so we also have to ignore this file
UseFtpUsers off
----------------------------------------------------------------------------------------------------
Nun hätte ich gern folgende 2 User: test1 und test2
die Passwörter sollen wie folgt lauten: test und test

Wenn mir jemand weiterhelfen kann, könnte er mir die 2 User in der von mir hier abgebildetetn proftpd.conf einfügen.

Vielne Dank
mfg
netzer
netzer
 
Posts: 4
Joined: 02. February 2005 10:06
Location: buxdehude

Postby Antivirus » 02. February 2005 12:49

Hallo
Versuch es einmal mit dieser config...
Passwörter kannst du hier unter anderem hier verschlüsseln: http://www.phpbbhacks.com/md5.php

ich konnte die config nicht testen, also ich bin mir nicht so sicher ob das geht...

Gruss Antivirus

Code: Select all
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName "ProFTPD"
ServerType standalone
DefaultServer on

# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022

# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 30

# Set the user and group that the server normally runs at.
User ftp
#Group nogroup

# Normally, we want files to be overwriteable.
<Directory /home/ftp2/*>
AllowOverwrite on
</Directory>

# only for the web servers content
DefaultRoot /home/ftp2

# nobody gets the password "lampp"
# commented out by lampp security
#UserPassword nobody wRPBu8u4YP0CY
UserPassword nobody Elsk83sCmKzwc
UserPassword test1 098f6bcd4621d373cade4e832627b4f6
UserPassword test2 098f6bcd4621d373cade4e832627b4f6

# nobody is no normal user so we have to allow users with no real shell
RequireValidShell off

# nobody may be in /etc/ftpusers so we also have to ignore this file
UseFtpUsers off
User avatar
Antivirus
 
Posts: 124
Joined: 11. April 2003 19:33

Postby netzer » 02. February 2005 14:18

mmmh

hab ich genauso eingetragen....war aber auch schon vorher soweit....

hab den user auch unter linux angelegt aber es funktioniert immer noch nicht....


vielleicht weiß noch irgendjemand weiter
netzer
 
Posts: 4
Joined: 02. February 2005 10:06
Location: buxdehude

Postby Antivirus » 02. February 2005 17:24

LAN optimiert:

Daten für das Login (Username, Password) kommen von den Linux-Usern genau wie die Verzeichnisse (Home-Verzeichnis).

Dies ist meine config... bis jetzt lief sie ohne Probleme (im LAN) die PC'sind nicht am Internet angeschlossen.

Code: Select all
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use.  It establishes a single server
# and a single anonymous login.  It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName         "LAN FTP Server"
ServerType         standalone
DefaultServer         on

# Port 21 is the standard FTP port.
Port            21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask            022

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances         30

# Set the user and group that the server normally runs at.
User            nobody
#Group            nogroup

# nobody is no normal user so we have to allow users with no real shell
RequireValidShell      off

# nobody may be in /etc/ftpusers so we also have to ignore this file
UseFtpUsers         off

#schaltet DNS abfrage aus, im LAN schnellers Login
UseReverseDNS         off
IdentLookups         off

#Standart Verzeichnis wenn ~ Alle User befinden sich im Homeverzeichnis kann auch ~/ftp Verwendet werden
DefaultRoot ~

#Benützer Root kann sich nicht einloggen
RootLogin         off

#Überschreiben zulassen
AllowOverwrite      on

#Wiederaufnahme vom Download
AllowRetrieveRestart      on

#Wiederaufnahme vom Upload
AllowStoreRestart      on

#Timeout Einstellungen
TimeoutIdle             0
TimeoutStalled          0
TimeoutNoTransfer      3600
User avatar
Antivirus
 
Posts: 124
Joined: 11. April 2003 19:33

Postby netzer » 03. February 2005 09:16

Hab jetzt komplett deine Konfig übernommen....
hab aber immer noch das gleiche Problem!!!

hab in Linux (Debian 3.0) einen user angelegt Name: test
Passwort: test

und immer wenn ich mich einloggen will per FlashFXP bekomme ich 530 login incorrect!

Woran könnte das liegen? ich weiß mir keinen Rat mehr. Tüftele schon seit mehreren Tagen dabrann
netzer
 
Posts: 4
Joined: 02. February 2005 10:06
Location: buxdehude

Postby netzer » 03. February 2005 09:29

so jetzt klappts!!!

hab jetzt mal alle user gelöscht und wieder neue erstellt jetzt funktionierts.


Jetzt habe ich aber noch eine Frage bei der du mir evtl weiterhelfen kannst.

Wie kann ich den Usern andere Verzeichnisse zuweisen (homedirectory)

Ich möchte nicht das die user automatisch in ihr Home-Verzeichnis gelangen sondern in ein von mir angelegtes Verzeichnis in das ich die user einzel verweisen kann.

Wäre cool wenn dies jemand wüsste!
netzer
 
Posts: 4
Joined: 02. February 2005 10:06
Location: buxdehude

Postby Antivirus » 03. February 2005 12:39

Hallo netzer

Wenn du die Linux-User verwendest dann nimmt er auch die Home-Verzeichnisse als Login-Verzeichnis.



Sonstige Lösung:

Du kann im Home-Verzeichnis alles eirichten ftp und www Ordner.

In der httpd.conf kannst du danach /home/test/www als Verzeichnis für z.B. eine IP oder Domain einrichten. Wenn sich der User test im FTP einlogt sieht er 2 Ordner ftp und www, somit kann er die Homepage sowie den FTP-Server verwalten.

Ein anderer User für die Besucher anlegen ohne Schreib- Löschrechte für den /home/test/ftp Ordner. Damit die Gäste die Dateien auch downloaden können.
User avatar
Antivirus
 
Posts: 124
Joined: 11. April 2003 19:33

Postby deepsurfer » 10. March 2005 09:59

chirio Deep
Wie sagte einst der MCP aus Tron auf dem Bildschirm zu schreiben Pflegte
" ... end of communication ... "
User avatar
deepsurfer
AF Moderator
 
Posts: 6440
Joined: 23. November 2004 10:44
Location: Cologne
Operating System: Win-XP / Win7 / Linux -Debian


Return to ProFTPD

Who is online

Users browsing this forum: No registered users and 2 guests