Proftpd probleme
-
- Beiträge: 4
- Registriert: 28.10.2008 17:02:07
Proftpd probleme
Guten Tag Forum
habe mich von einem Freund zu Debian Lenny bereden lassen und bin bis jetzt recht zufrieden.
Nun habe ich mir mal proftpd installiert und hätte gern das jeder user dem ich mein FTP Link gebe in das Verzeichniss /home/ftp kommt und volle schreib und lese Rechte hat/bekommt.
Habe hier und google ein wenig gesucht komme aber nicht wirklich weiter.
meine conf.:
# <Anonymous ~ftp>
# User ftp
# Group nogroup
# # We want clients to be able to login with "anonymous" as well as "ftp"
# UserAlias anonymous ftp
# # Cosmetic changes, all files belongs to ftp user
# DirFakeUser on ftp
# DirFakeGroup on ftp
#
# RequireValidShell off
#
# # Limit the maximum number of anonymous logins
# MaxClients 10
#
# # We want 'welcome.msg' displayed at login, and '.message' displayed
# # in each newly chdired directory.
# DisplayLogin welcome.msg
# DisplayFirstChdir .message
#
# # Limit WRITE everywhere in the anonymous chroot
<Directory /home/ftp>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
<Directory incoming>
Umask 022 is a good standard umask to prevent new files and dirs
(second parm) from being group and world writable.
Umask 022 022
<Limit READ WRITE>
DenyAll
</Limit>
<Limit STOR>
AllowAll
</Limit>
</Directory>
</Anonymous
UseIPv6 off
lsof -i zeigt an das proftpd läuft nur kommt niemand von außen auf ftp://xxxxxxx.homeip.net drauf.
Kann mir jemand helfen bitte
habe mich von einem Freund zu Debian Lenny bereden lassen und bin bis jetzt recht zufrieden.
Nun habe ich mir mal proftpd installiert und hätte gern das jeder user dem ich mein FTP Link gebe in das Verzeichniss /home/ftp kommt und volle schreib und lese Rechte hat/bekommt.
Habe hier und google ein wenig gesucht komme aber nicht wirklich weiter.
meine conf.:
# <Anonymous ~ftp>
# User ftp
# Group nogroup
# # We want clients to be able to login with "anonymous" as well as "ftp"
# UserAlias anonymous ftp
# # Cosmetic changes, all files belongs to ftp user
# DirFakeUser on ftp
# DirFakeGroup on ftp
#
# RequireValidShell off
#
# # Limit the maximum number of anonymous logins
# MaxClients 10
#
# # We want 'welcome.msg' displayed at login, and '.message' displayed
# # in each newly chdired directory.
# DisplayLogin welcome.msg
# DisplayFirstChdir .message
#
# # Limit WRITE everywhere in the anonymous chroot
<Directory /home/ftp>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
<Directory incoming>
Umask 022 is a good standard umask to prevent new files and dirs
(second parm) from being group and world writable.
Umask 022 022
<Limit READ WRITE>
DenyAll
</Limit>
<Limit STOR>
AllowAll
</Limit>
</Directory>
</Anonymous
UseIPv6 off
lsof -i zeigt an das proftpd läuft nur kommt niemand von außen auf ftp://xxxxxxx.homeip.net drauf.
Kann mir jemand helfen bitte
- CREEQ
- Beiträge: 64
- Registriert: 30.07.2002 19:04:58
- Lizenz eigener Beiträge: GNU General Public License
- Wohnort: Berlin
-
Kontaktdaten:
Re: Proftpd probleme
Hallo celebration,
damit _jeder_ auf Deinen FTP kommt, ohne Passwort, musst Du die Kommentare Deiner anonymous-Sektion entfernen.
Das könnte z.b. so hier aussehen:
Der User ftp muss existieren und sein Heimatverzeichnis ist dann das FTP-Verzeichnis (default: /home/ftp).
Gruß.
damit _jeder_ auf Deinen FTP kommt, ohne Passwort, musst Du die Kommentare Deiner anonymous-Sektion entfernen.
Das könnte z.b. so hier aussehen:
Code: Alles auswählen
<Anonymous ~ftp>
User ftp
Group nogroup
UserAlias anonymous ftp
RequireValidShell off
AllowForeignAddress on
MaxClients 10
DisplayLogin welcome.msg
DisplayFirstChdir .message
<Directory *>
<Limit WRITE RETR STOR>
AllowAll
</Limit>
<Limit DELE>
DenyAll
</Limit>
</Directory>
</Anonymous>
Gruß.
http://f00l.de
Visit us: #linux-support @ EFNet
Visit us: #linux-support @ EFNet
-
- Beiträge: 4
- Registriert: 28.10.2008 17:02:07
Re: Proftpd probleme
ok wie leg ich den user an??
mittels adduser wird sein verzeichniss nur nach home verlegt aber wie bekomm ichs dann auf (home/ftp ??
desweiteren wirf ein "ftp localhost" :
ftp localhost
Connected to localhost.
500 Sorry, no server available to handle request on localhost
ftp>
aus
mittels adduser wird sein verzeichniss nur nach home verlegt aber wie bekomm ichs dann auf (home/ftp ??
desweiteren wirf ein "ftp localhost" :
ftp localhost
Connected to localhost.
500 Sorry, no server available to handle request on localhost
ftp>
aus
- CREEQ
- Beiträge: 64
- Registriert: 30.07.2002 19:04:58
- Lizenz eigener Beiträge: GNU General Public License
- Wohnort: Berlin
-
Kontaktdaten:
Re: Proftpd probleme
es sollte eigl. durch adduser dann in /home/ftp sein, sonst könntest du es einfach in /etc/passwd manuell ändern.celebration hat geschrieben:mittels adduser wird sein verzeichniss nur nach home verlegt aber wie bekomm ichs dann auf (home/ftp ??
da müsste ja noch mehr in der proftpd.conf drin stehen z.b.:celebration hat geschrieben:desweiteren wirf ein "ftp localhost" :
ftp localhost
Connected to localhost.
500 Sorry, no server available to handle request on localhost
ftp>
aus
Code: Alles auswählen
ServerName "dein ftp server"
ServerType standalone
DeferWelcome off
Port 21
User proftpd
Group nogroup
vllt. liegts ja wirklich an dem homedir.
nach config-änderungen proftpd immer neu starten: /etc/init.d/proftpd restart
Gruß.
http://f00l.de
Visit us: #linux-support @ EFNet
Visit us: #linux-support @ EFNet
-
- Beiträge: 4
- Registriert: 28.10.2008 17:02:07
Re: Proftpd probleme
[*]ServerName "dein ftp server"
ServerType standalone
DeferWelcome off
Port 21
User proftpd
Group nogroup[*]
hab ich hinzugefügt keinerlei besserung.
nen restart des ftp mach ich schon...wurd mir in das hirn geschlagen dies immer zu machen*fg*
ServerType standalone
DeferWelcome off
Port 21
User proftpd
Group nogroup[*]
hab ich hinzugefügt keinerlei besserung.
nen restart des ftp mach ich schon...wurd mir in das hirn geschlagen dies immer zu machen*fg*
- CREEQ
- Beiträge: 64
- Registriert: 30.07.2002 19:04:58
- Lizenz eigener Beiträge: GNU General Public License
- Wohnort: Berlin
-
Kontaktdaten:
Re: Proftpd probleme
dann überprüfe mal ob diese zeile in deiner proftpd.conf ist:
anschließend kannst du beim starten des proftpd und beim versuch zu verbinden mal die log datei im o.g. verzeichnis beobachten.
gruß
Code: Alles auswählen
SystemLog /var/log/proftpd/proftpd.log
gruß
http://f00l.de
Visit us: #linux-support @ EFNet
Visit us: #linux-support @ EFNet
-
- Beiträge: 4
- Registriert: 28.10.2008 17:02:07
Re: Proftpd probleme
#
# /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
#
# Includes DSO modules
Include /etc/proftpd/modules.conf
# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6 off
ServerName "Debian"
ServerType standalone
DeferWelcome off
MultilineRFC2228 on
DefaultServer on
ShowSymlinks on
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200
DisplayLogin welcome.msg
ListOptions "-l"
DenyFilter \*.*/
# Port 21 is the standard FTP port.
Port 21
# In some cases you have to specify passive ports range to by-pass
# firewall limitations. Ephemeral ports can be used for that, but
# feel free to use a more narrow range.
PassivePorts 49152 65534
# 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 proftpd
Group nogroup
# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022
# Normally, we want files to be overwriteable.
AllowOverwrite on
# Uncomment this if you are using NIS or LDAP to retrieve passwords:
# PersistentPasswd off
# Be warned: use of this directive impacts CPU average load!
#
# Uncomment this if you like to see progress and transfer rate with ftpwho
# in downloads. That is not needed for uploads rates.
# UseSendFile off
TransferLog /var/log/proftpd/xferlog
SystemLog /var/log/proftpd/proftpd.log
<IfModule mod_tls.c>
TLSEngine off
</IfModule>
<IfModule mod_quota.c>
QuotaEngine on
</IfModule>
<IfModule mod_ratio.c>
Ratios on
</IfModule>
# Delay engine reduces impact of the so-called Timing Attack described in
# http://security.lss.hr/index.php?page=d ... 2004-10-02
# It is on by default.
<IfModule mod_delay.c>
DelayEngine on
</IfModule>
<IfModule mod_ctrls.c>
ControlsEngine on
ControlsMaxClients 2
ControlsLog /var/log/proftpd/controls.log
ControlsInterval 5
ControlsSocket /var/run/proftpd/proftpd.sock
</IfModule>
<IfModule mod_ctrls_admin.c>
AdminControlsEngine on
</IfModule>
# A basic anonymous configuration, no upload directories.
<Anonymous ~ftp>
User ftp
Group nogroup
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
# Cosmetic changes, all files belongs to ftp user
DirFakeUser on ftp
DirFakeGroup on ftp
RequireValidShell off
# Limit the maximum number of anonymous logins
MaxClients 10
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
# Limit WRITE everywhere in the anonymous chroot
<Directory *>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
<Directory incoming>
# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022
<Limit READ WRITE>
DenyAll
</Limit>
<Limit STOR>
AllowAll
</Limit>
</Directory>
</Anonymous>
ist nun meine aktuelle conf die auch läuft*freu wie brot*
nur schafft es keiner ausserhalb die datei die ich einfügte Runter zu laden aber Hochladen klappte, jemand eine idee dazu wie ich es anstelle das man sowohl als auch Hoch und Runterladen kann??
# /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
#
# Includes DSO modules
Include /etc/proftpd/modules.conf
# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6 off
ServerName "Debian"
ServerType standalone
DeferWelcome off
MultilineRFC2228 on
DefaultServer on
ShowSymlinks on
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200
DisplayLogin welcome.msg
ListOptions "-l"
DenyFilter \*.*/
# Port 21 is the standard FTP port.
Port 21
# In some cases you have to specify passive ports range to by-pass
# firewall limitations. Ephemeral ports can be used for that, but
# feel free to use a more narrow range.
PassivePorts 49152 65534
# 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 proftpd
Group nogroup
# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022
# Normally, we want files to be overwriteable.
AllowOverwrite on
# Uncomment this if you are using NIS or LDAP to retrieve passwords:
# PersistentPasswd off
# Be warned: use of this directive impacts CPU average load!
#
# Uncomment this if you like to see progress and transfer rate with ftpwho
# in downloads. That is not needed for uploads rates.
# UseSendFile off
TransferLog /var/log/proftpd/xferlog
SystemLog /var/log/proftpd/proftpd.log
<IfModule mod_tls.c>
TLSEngine off
</IfModule>
<IfModule mod_quota.c>
QuotaEngine on
</IfModule>
<IfModule mod_ratio.c>
Ratios on
</IfModule>
# Delay engine reduces impact of the so-called Timing Attack described in
# http://security.lss.hr/index.php?page=d ... 2004-10-02
# It is on by default.
<IfModule mod_delay.c>
DelayEngine on
</IfModule>
<IfModule mod_ctrls.c>
ControlsEngine on
ControlsMaxClients 2
ControlsLog /var/log/proftpd/controls.log
ControlsInterval 5
ControlsSocket /var/run/proftpd/proftpd.sock
</IfModule>
<IfModule mod_ctrls_admin.c>
AdminControlsEngine on
</IfModule>
# A basic anonymous configuration, no upload directories.
<Anonymous ~ftp>
User ftp
Group nogroup
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
# Cosmetic changes, all files belongs to ftp user
DirFakeUser on ftp
DirFakeGroup on ftp
RequireValidShell off
# Limit the maximum number of anonymous logins
MaxClients 10
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
# Limit WRITE everywhere in the anonymous chroot
<Directory *>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
<Directory incoming>
# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022
<Limit READ WRITE>
DenyAll
</Limit>
<Limit STOR>
AllowAll
</Limit>
</Directory>
</Anonymous>
ist nun meine aktuelle conf die auch läuft*freu wie brot*
nur schafft es keiner ausserhalb die datei die ich einfügte Runter zu laden aber Hochladen klappte, jemand eine idee dazu wie ich es anstelle das man sowohl als auch Hoch und Runterladen kann??
- CREEQ
- Beiträge: 64
- Registriert: 30.07.2002 19:04:58
- Lizenz eigener Beiträge: GNU General Public License
- Wohnort: Berlin
-
Kontaktdaten:
Re: Proftpd probleme
Code: Alles auswählen
<Limit RETR>
AllowAll
</Limit>
![Smile :)](./images/smilies/icon_smile.gif)
http://f00l.de
Visit us: #linux-support @ EFNet
Visit us: #linux-support @ EFNet