Hallo zusammen
Ich möchte das sich jeder User mit seinem Benutzernamen und Passwort in sein Verzeichniss einloggen kann. Natürlich darf er auch seine Dateien hochladen, ändern und löschen.
Bis anhin hatte ich RedHat 7.3 mit proftpd 1.26 was so auch funktionierte.
Jetzt läuft auf meinem Server Suse 8.1 mit proftpd 1.27
Doch leider komme ich mit jedem User/Benutzername in das GLEICHE Verzeichnis ??
Was natürlich nicht gut ist ... :lol:
Der DNS Server und Apache funktionieren natürlich ..
Hier meine Config unter Redhat 7.3 proftpd 1.26:
ServerName "xyz.ch"
ServerIdent on "FTP Server ready."
ServerAdmin
info@xyz.ch#ServerType standart
DefaultServer on
AccessGrantMsg "User %u logged in."
#DisplayConnect /etc/ftpissue
#DisplayLogin /etc/ftpmotd
#DisplayGoAway /etc/ftpgoaway
DeferWelcome off
# Use this to excude users from the chroot
DefaultRoot ~ !adm
# Use pam to authenticate by default
AuthPAMAuthoritative on
# Do not perform ident nor DNS lookups (hangs when the port is filtered)
IdentLookups off
UseReverseDNS off
# 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
# Default to show dot files in directory listings
LsDefaultOptions "-a"
# See Configuration.html for these (here are the default values)
#MultilineRFC2228 off
#RootLogin off
#LoginPasswordPrompt on
#MaxLoginAttempts 3
#MaxClientsPerHost none
#AllowForeignAddress off # For FXP
# Allow to resume not only the downloads but the uploads too
AllowRetrieveRestart on
AllowStoreRestart on
# 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 20
# Set the user and group that the server normally runs at.
User nobody
Group nobody
# This is where we want to put the pid file
ScoreboardPath /var/run
# Normally, we want users to do a few things.
<Global>
AllowOverwrite yes
<Limit ALL SITE_CHMOD>
AllowAll
</Limit>
</Global>
# Define the log formats
LogFormat default "%h %l %u %t \"%r\" %s %b"
LogFormat auth "%v [%P] %h %t \"%r\" %s"
# We want 'welcome.msg' displayed at login, '.message' displayed in
# each newly chdired directory and tell users to read README* files.
DisplayLogin /welcome.msg
DisplayFirstChdir .message
DisplayReadme README*
# Some more cosmetic and not vital stuff
DirFakeUser on ftpadm
DirFakeGroup on ftpadm
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE SITE_CHMOD>
DenyAll
</Limit>
# An upload directory that allows storing files but not retrieving
# or creating directories.
<Directory uploads/*>
AllowOverwrite no
<Limit READ>
DenyAll
</Limit>
<Limit STOR>
AllowAll
</Limit>
</Directory>
# Don't write anonymous accesses to the system wtmp file (good idea!)
WtmpLog off
</Directory>
<VirtualHost
www.xyz.ch>
ServerName "
www.xyz.ch"
DefaultRoot /home/www.xyz.ch
</VirtualHost>
<VirtualHost
www.abc.ch>
ServerName "
www.abc.ch"
DefaultRoot /home/www.abc.ch
</VirtualHost>
--------------------------------------------------
Und hier das config File von Suse 8.1 proftpd 1.27:
# (C)
www.proftpd.de # updated 2003-05-12
# by Stonki
ServerName "xyz"
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
# Note that this ONLY works in standalone mode
MaxInstances 30
# Set the user and group under which the server will run.
User nobody
Group nogroup
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot ~
# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directory>
<VirtualHost
www.xyz.ch>
ServerName "
www.xyz.ch"
DefaultRoot /home/www.xyz.ch
</VirtualHost>
<VirtualHost
www.abc.ch>
ServerName "
www.abc.ch"
DefaultRoot /home/www.abc.ch
</VirtualHost>
-----------------------------------------------------
Leider kann ich das alte config file von RedHat unter Suse nicht benutzen, sonst würde ich hier nicht Fragen ... :wink:
Kann mir jemand sagen was ich am neuen config File ändern oder ergänzen muss ...
Herzlichen Dank