PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : suse 7.3 proftp und inetd nix geht



Sellew
30.01.02, 22:12
*grrr

also dies ist in meiner inetd.conf

ftp stream tcp nowait ftp /usr/sbin/tcpd proftpd

dies ist meine proftp.conf (ist die die dabei war)

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 Default Installation"
ServerType inetd
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

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

# A basic anonymous configuration, no upload directories.
<Anonymous ~ftp>
User ftp
Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp

# 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
<Limit WRITE>
DenyAll
</Limit>

</Anonymous>

so, wenn ich mich local anmelden will, kommt ein timeout. was das?? ich krieg ne macke. wieso?? ich hab schon im forum geschaut. diese conf müsste doch auf anhieb funzen oder?? bin am verzweifeln.

thx an alle die helfen wollen.

mfg.

howlcoyote
31.01.02, 10:23
Stichwort: "Logfiles" unter /var/log/

Sellew
31.01.02, 18:25
hmm danke, aber in welcher soll ein fehler stehen?? ich hab nun schon messages angesehen aber da steht nichts.

was nun??

mfg

Zaphod-B
31.01.02, 19:39
Moin, ich hab zwar auch nicht allzu viel Ahnung, aber guck dir mal die conf auf dieser Seite an.
http://3d-crew.com/unixtexte/proftpd.html

Greetings Zaphod-B

Sellew
31.01.02, 20:19
hi,

nu iss folgendes. hier die proftpd.conf der seite geändert an user group und inetd.

ServerName "ProFTPD Default Installation"
ServerType inetd
DefaultServer on


Port 21
Umask 022

DenyFilter \*.*/
MaxInstances 30

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

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

# anonymous ftp section

<Anonymous ~ftp>

RequireValidShell off

# Allow logins if they are disabled above.
<Limit LOGIN>
AllowAll
order allow,deny
Allow from 192.168.1. , .example.net
deny from all
</Limit>

# Maximum clients with message
MaxClients 5 "Sorry, max %m users -- try again later"
User ftp
Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp

# Limit WRITE everywhere in the anonymous chroot
# chroot -> verzeichnis /home/ftp ;)
<Limit WRITE>
DenyAll
</Limit>

<Directory uploads/*>
<Limit READ>
DenyAll
</Limit>

<Limit STOR>
AllowAll
</Limit>
</Directory>

</Anonymous>

dies steht nun in /var/log/messages:

connected von localhost
unable to set daemon groups: Operation not permitted
unable to set gid to 102 current gid: 2

also den benutzer ftp gibts und er gehört auch zur gruppe ftp. tja aber warum dann der fehler?? unklar. (für mich zumindest)

mfg

Zaphod-B
31.01.02, 20:42
ServerName "ProFTPD Default Installation"
ServerType inetd
DefaultServer on


Port 21
Umask 022

DenyFilter \*.*/
MaxInstances 30

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

# Normally, we want files to be overwriteable.

<Directory /*>
AllowOverwrite on
</Directory>


# anonymous ftp section

<Anonymous ~ftp>

RequireValidShell off

# Allow logins if they are disabled above.

<Limit LOGIN>
AllowAll
</Limit>



# Maximum clients with message
MaxClients 5 "Sorry, max %m users -- try again later"
User ftp
Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp

# Limit WRITE everywhere in the anonymous chroot
# chroot -> verzeichnis /home/ftp

<Limit WRITE>
DenyAll
</Limit>

<Directory uploads/*>
<Limit READ>
DenyAll
</Limit>

<Limit STOR>
AllowAll
</Limit>
</Directory>


So probiers mit dem was ich da geschrieben habe nochmal.


Greetings Zaphod-B

Sellew
31.01.02, 20:58
na das geht gleich gar nicht. sagt allow all ist nicht erlaubt in der top level section.

hmm es kann doch nicht sein. es heißt proftpd wäre so einfach zu konfigurieren und ich packs net. *zweifel an mir selbst*

mfg

Zaphod-B
31.01.02, 21:06
Ich hab jetzt mal meine conf rangehängt, musst du nur ServerType ändern.


Greetings Zaphod-B

Sellew
31.01.02, 21:26
tja wie immer.

er kann die nutzergruppe nicht ändern. selber fehler wie vorher.

in inetd steht auch alles richtig. servertyp hab ich auch nach inetd geändert. ich lad mal den aktuellen runter und kompalier mal selbst. vielleicht hat suse wieder was schrottiges gemacht. ich raffs nicht.

mfg.

Sellew
31.01.02, 21:50
tsü kurios. hab nu selbst kompiliert und nu funzt es auf anhieb mit denselben einstellungen. *rätsel* naja ich glaub selbst kompalieren ist ab sofort besser.

na dann dank ich dir mal für deine hilfe und deine zeit.

p.s. wer soll ahnen das die rpm's von suse nicht gleich gehen. (zumindest bei mir)

mfg

Zaphod-B
31.01.02, 21:55
Ist schon komisch, denn bei mir klappte es bisher Reibungslos. Hättest dir ja auch testweise ne aktuelle Version von ftp holen können.

Greetings Zaphod-B

Sellew
31.01.02, 22:13
naja jetzut funzt es, es gilt nur noch zu konfigurieren. :) :eek:

naja werds schon schaffen.

mfg