www.ProFTPD.de

ProFTPD => ProFTPD - Deutsch => Thema gestartet von: Braincrusher2005 am 01. Mai 2005, 17:03:27



Titel: Probleme mit Rechten...
Beitrag von: Braincrusher2005 am 01. Mai 2005, 17:03:27
Musste aufgrund eines Hackerangriffes Szstem neu einrichten, vorher habe ich ein Backup der proftpd.conf gemacht und nat[rlich auch der datenbank usw...

So nun hatte ich per apt/get install proftpd/mzsql proftp installiert und komischerweise stand in meiner proftpd.conf nix von SQL...

Gut, ein wenig gelesen, gefummelt und nun kann ich mich mit meinen 2 aus der Datenbank kommenden Usern auf dem FTP einloggen..

Damit der User sampler19 wirklich nur in seinem ordner bleibenkann habe ich noch rootdefault eingestellt...

Nun egal ob ich mich mit meinen User der auf /var/www als homedir hat einlogge oder mit den anderen Nick, ich kann weder CHMOD aendern noch dateien hochladen noch ordner erstellen...

Woran kann das liegen?


Zitat
# 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/nogroup" and "ftp" for normal operation and anon.

ServerName                      "Debian"
ServerType                      standalone
DeferWelcome                    off

MultilineRFC2228                on
DefaultServer                   on
ShowSymlinks                    off
AllowOverwrite                  on

TimeoutNoTransfer               600
TimeoutStalled                  600
TimeoutIdle                     1200

DenyFilter                      \*.*/

# Uncomment this if you are using NIS or LDAP to retrieve passwords:
#PersistentPasswd               off
AllowOverwrite on

AllowRetrieveRestart on

AllowStoreRestart on

# Uncomment this if you would use TLS module:
#TLSEngine                      on

# Uncomment this if you would use quota module:
#Quotas                         on

# Uncomment this if you would use ratio module:
#Ratios                         on
# Port 21 is the standard FTP port.
Port                            21

# 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

<Directory /*>
# 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      
</Directory>

# A basic anonymous configuration, no upload directories.
<Limit SITE_CHMOD>
AllowAll
</Limit>

# <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          

#   # in each newly chdired directory.
#   DisplayLogin                        welcome.msg
#   DisplayFirstChdir           .message
#
#   # Limit WRITE everywhere in the anonymous chroot
#   <Directory *>
#     <Limit WRITE>
#       DenyAll
#     </Limit>
#   </Directory>
#
#   # Uncomment this if you're brave.
#   # <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>
# Zugangskontrolle
#
RequireValidShell off
SQLAuthTypes Plaintext
#SQLAuthTypes Crypt
SQLAuthenticate users*

SQLConnectInfo proftpd@localhost ftpserver PASSWORD
SQLDefaultGID 777
SQLDefaultUID 777
SQLMinUserGID 100
SQLMinUserUID 500
SQLUserInfo ftp username password uid gid homedir shell

#
# aktive SQL Kommandos, ab hier passiert etwas :-)
#
SQLLog PASS counter
SQLNamedQuery counter UPDATE "letzter_zugriff=now(), count=count+1 WHERE username='%u'" users
# xfer Log in mysql
SQLLog RETR,STOR transfer1
SQLNamedQuery transfer1 INSERT "'%u', '%f', '%b', '%h', '%a', '%m', '%T',now(), 'c', NULL" xfer_stat
SQLLOG ERR_RETR,ERR_STOR transfer2
SQLNamedQuery transfer2 INSERT "'%u', '%f', '%b', '%h', '%a', '%m', '%T',now(), 'i', NULL" xfer_stat
SQLLOGFILE /var/log/proftpd.sqllog
defaultroot ~


Titel: Probleme mit Rechten...
Beitrag von: stonki am 02. Mai 2005, 11:07:54
stimmen die Unix Rechte. Meist ist da der Fehler.


Titel: Probleme mit Rechten...
Beitrag von: Wörsty am 03. Mai 2005, 01:16:25
Auf jeden Fall stimmt das Tastatulayout nicht.
Liest eigentlich nie jemand, was er schreibt? :roll:


Titel: Probleme mit Rechten...
Beitrag von: stonki am 03. Mai 2005, 06:50:37
Zitat von: "Wörsty"
Auf jeden Fall stimmt das Tastatulayout nicht.
Liest eigentlich nie jemand, was er schreibt? :roll:


a) was meinst Du ?
b) Nein  :lol: