www.ProFTPD.de
13. März 2007, 19:21:04 *
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: Defaultroot als auch Defaultchdir funzen nicht  (Gelesen 316 mal)
0 Mitglieder und 1 Gast betrachten dieses Thema.
Blutgerinsel
ProFTPD
*
Offline Offline

Beiträge: 18


Profil anzeigen
« am: 20. August 2004, 23:34:24 »

Hey,

hatte bisher noch nie ein Problem mit ner Config aber das macht mich doch echt wirr.

Kurz und bündig man kommt in die höheren Ebenen ohne Probs
meine config ist mein letzte Idee. Moment beschränkt auf egal welche Gruppe.

Meine config:
Code:

ServerName                      "Debian"
ServerType                      standalone
DeferWelcome                    off

MultilineRFC2228                on
DefaultServer                   on
ShowSymlinks                    on
AllowOverwrite                  on

TimeoutNoTransfer               600
TimeoutStalled                  600
TimeoutIdle                     1200

DisplayLogin                    welcome.msg
DisplayFirstChdir               .message
ListOptions                     "-l"

DenyFilter                      \*.*/
RequireValidShell off

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

# 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

<Global>
DefaultRoot /home/ftpuser/restricted
DefaultChdir /home/ftpuser/restricted
</Global>


Meine passwd:
Code:

leecher:x:1003:1001:ftp leecher,,,:/home/ftpuser:/bin/bash

bei setzen von /bin/false kein login mehr möglich?

Meine group:
Code:

restricted:x:1001:
notrestricted:x:1002:


das verzeichnis:
Code:

drw------x   4 root  root     4096 2004-08-19 02:05 ftpuser
drwxr-xr-x  2 root notrestricted 4096 2004-08-18 22:02 norestricted
drwxr-xr-x  2 root restricted    4096 2004-08-19 03:40 restricted


Mein Debug:
Code:

Wishmaster:/etc# proftpd -n -d9
 - parsing '/etc/proftpd.conf' configuration
 - FS: using system open()
 - FS: using system read()
 - Compiling deny regex '\*.*/'.
 - Allocated deny regex at location 0x80e35c8.
 - FS: using system read()
 - FS: using system read()
 - FS: using system close()
localhost -
localhost - Config for Debian:
localhost - DeferWelcome
localhost - DefaultServer
localhost - ShowSymlinks
localhost - AllowOverwrite
localhost - TimeoutNoTransfer
localhost - TimeoutStalled
localhost - TimeoutIdle
localhost - DisplayLogin
localhost - DisplayFirstChdir
localhost - ListOptions
localhost - DenyFilter
localhost - RequireValidShell
localhost - DefaultRoot
localhost - DefaultChdir
localhost - SETUP PRIVS at ../../../src/main.c:2704
localhost - ROOT PRIVS at ../../../src/main.c:1956
localhost - RELINQUISH PRIVS at ../../../src/main.c:1962
localhost - ROOT PRIVS at ../../../src/main.c:2323
localhost - opening scoreboard '/var/run/proftpd/proftpd.scoreboard'
localhost - RELINQUISH PRIVS at ../../../src/main.c:2347
localhost - ROOT PRIVS at ../../../src/inet.c:452
localhost - RELINQUISH PRIVS at ../../../src/inet.c:492
localhost - Failed binding to 0.0.0.0, port 21: Address already in use
localhost - Check the ServerType directive to ensure you are configured correctly.
Gespeichert
Blutgerinsel
ProFTPD
*
Offline Offline

Beiträge: 18


Profil anzeigen
« Antwort #1 am: 21. August 2004, 11:55:52 »

Hey,

ich denke ich habe nun mein Problem gelöst. Habe schon beinahe meine Kompetenz angezweifelt :lol:

Meine Daten passen und nach einem Server neustart klappte das auch so wie es soll.

Werde nun weiterkonfigurieren   :wink:
Gespeichert
Blutgerinsel
ProFTPD
*
Offline Offline

Beiträge: 18


Profil anzeigen
« Antwort #2 am: 21. August 2004, 14:46:22 »

Hey,

ein LimitBlock funktioniert anscheindend nicht aber was ist an der Syntax falsch ?

Code:

 - parsing '/etc/proftpd.conf' configuration
 - FS: using system open()
 - FS: using system read()
 - Compiling deny regex '\*.*/'.
 - Allocated deny regex at location 0x80e35c0.
 - FS: using system read()
 - Fatal: <Limit>: directive requires one or more FTP commands.

<Global>
  <Limit>
    AllowGroup OR restricted,norestricted
  </Limit>
  AccessDenyMsg "Zugriff für %u ist verweigert worden"
  AccessGrantMsg "Zugriff für %u wurde gewährt"
  DefaultRoot /home/ftpuser/restricted restricted,!norestricted
  DefaultRoot /home/ftpuser/norestricted norestricted,!restricted
  <Directory /home/ftpuser/restricted>
    <Limit WRITE>
      DenyAll
    </Limit>
  </Directory>
  <Directory /home/ftpuser/UPLOAD>
    <Limit MKD CWD RTFR STOR>
      AllowGroup restricted
    </Limit>
  </Directory>
</Global>
Gespeichert
Blutgerinsel
ProFTPD
*
Offline Offline

Beiträge: 18


Profil anzeigen
« Antwort #3 am: 21. August 2004, 14:48:27 »

ok habs gefunden  :lol:
Gespeichert
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.057 Sekunden mit 18 Zugriffen.