www.ProFTPD.de
13. März 2007, 18:52:00 *
Willkommen Gast. Bitte einloggen oder registrieren.
Haben Sie Ihre Aktivierungs E-Mail übersehen?

Einloggen mit Benutzername, Passwort und Sitzungslänge
News: SMF - Neu installiert!
 
   Übersicht   Hilfe Suche Login Registrieren  
Seiten: [1]   Nach unten
  Drucken  
Autor Thema: Problem mit User - Virtualhost - AutUserFile  (Gelesen 395 mal)
0 Mitglieder und 1 Gast betrachten dieses Thema.
zurli
ProFTPD
*
Offline Offline

Beiträge: 1


Profil anzeigen
« am: 14. Mai 2005, 18:43:07 »

Hallo zusammen

ich habe suse 9.1 und XAMPP für Linux 1.4.13 installiert.

Zuerst mal was funktioniert.
    Ich kann mich als systemuser bei ProFTPD anmelden

    Ich kann mich als nobody bei ProFTPD anmelden (mit passwort das bei lampp gesetzt wrude)


Hier mein Wunsch
Ich würde gerne per AuthUserFile Virtuelle User einrichten. Habe bereits das ftpasswd script heruntergeladen und in /opt/lamp/etc plaziert. Dies funktioniert bestens.

Hier das file /opt/lampp/etc/ftpd.group
Code:
proftpd:x:501:test,login1


Und das file /opt/lampp/etc/ftpd.passwd
Code:
test:$1$1yg8Ua6D$7/b3bt7zCk4AVGYTa1123/:1001:501::/opt/lampp/htdocs/test:/bin/false


Nun zum eigentlichen Problem. Was muss in der Conifg stehen, damit der Server 1. die datei ftpd.group und ftpd.passwd liest und 2. dass er Virtuelle Directorys zuteilt?

hier meine config
Code:
# 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                            nobody
#Group                          nogroup

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

# only for the web servers content
DefaultRoot /opt/lampp/htdocs

# nobody gets the password "lampp"
# commented out by lampp security
#UserPassword nobody wRPBu8u4YP0CY
UserPassword nobody Vd5fs.hVuALg.

# 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


und noch pfoftpd -l
Code:
Compiled-in modules:
  mod_core.c
  mod_xfer.c
  mod_auth_unix.c
  mod_auth_file.c
  mod_auth.c
  mod_ls.c
  mod_log.c
  mod_site.c
  mod_sql.c
  mod_sql_mysql.c
  mod_tls.c
  mod_cap.c


Danke für die Hilfe
 :oops:
Gespeichert
Anonymous
Gast
« Antwort #1 am: 15. Mai 2005, 00:35:39 »

Hallo nochmals

habe einen Teil schon selber herausgefunden.

proftp.conf mit folgendem erweitert.
Code:
# This makes an AuthGroupFile that can only have GIDs 2000 to 4000, and
  # whose groups must start with 'cust'
  #AuthGroupFile /etc/ftpd/group id 2000-4000 name ^cust
  AuthGroupFile /opt/lampp/etc/ftpd.group

# This makes an AuthUserFile whose user names must start with 'ftp', and
  # whose homes cannot start with /home.
  #AuthUserFile /etc/ftpd/passwd name ^ftp home !^/home
  AuthUserFile /opt/lampp/etc/ftpd.passwd

<VirtualHost ftp.virtual.com>
  ServerName                    "Virtual.com's FTP Server"

  MaxClients                    10
  MaxLoginAttempts              1

  # DeferWelcome prevents proftpd from displaying the servername
  # until a client has authenticated.
  DeferWelcome                  on

  # Limit normal user logins, because we only want to allow
  # guest logins.
  <Limit LOGIN>
    DenyAll
  </Limit>

  # Next, create a "guest" account (which could be used
  # by a customer to allow private access to their web site, etc)
  <Anonymous ~>
    User                        ftp_test
    Group                       ftp
    AnonRequirePassword         on

    <Limit LOGIN>
      AllowAll
    </Limit>

    HideUser                    root
    HideGroup                   root

    # um uploads zu erlauben
    <Directory *>
      <Limit STOR>
        AllowAll
      </Limit>
    </Directory>

    # A private directory that we don't want the user getting in to.
    #<Directory logs>
    #  <Limit READ WRITE DIRS>
    #    DenyAll
    #  </Limit>
    #</Directory>
  </Anonymous>
</VirtualHost>


dann habe ich noch die datei ftpd.passwd abgeändert
Code:
ftp_test:$1$arjTkdTD$inpWz1EBNNZ2Y/Tqqg78i1:501:1001::/opt/lampp/htdocs/test:/bin/false


die datei ftpd.group sieht so aus
Code:
ftp:x:1001:ftp_test


Das anmelden per ftp funktioniert nun mit dem AuthUserFile :lol:

Leider kann ich keine files uploaden? Traurig

Danke für die Hilfe
Gespeichert
stonki
Administrator
ProFTPD
*****
Offline Offline

Beiträge: 1853


15318939
Profil anzeigen WWW E-Mail
« Antwort #2 am: 16. Mai 2005, 10:37:00 »

mit grosser Wahrscheinlichkeit werden die linux rechte nicht stimmen.
Gespeichert

www.stonki.de:    the more I see, the more I know.......
www.proftpd.de:   Deutsche ProFTPD Dokumentation
www.krename.net:  Der Batch Renamer für KDE
www.kbarcode.net: Die Barcode Solution für KDE
Seiten: [1]   Nach oben
  Drucken  
 
Gehe zu:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Prüfe XHTML 1.0 Prüfe CSS
Seite erstellt in 0.06 Sekunden mit 15 Zugriffen.