Titel: Zwangs - Verzeichniss wid nicht beachtet Beitrag von: u103unknown am 10. März 2007, 20:07:39 Ich versuche seit einiger Zeit das bei einem ftp login egal welcher user auf dasselbe Verzeichniss kommt ( /mnt ). Er wird aber lediglich in sein stammverzeichniss wieder hineingezogen ( /home/username ) nun weiß ich auch nicht mehr weiter...
Hier ist die proftpd.conf: 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 "pserver" 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 0000 # 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 under which the server will run. User root Group users # To cause every FTP user to be "jailed" (chrooted) into their home # directory, uncomment this line. defaultroot /mnt # Normally, we want files to be overwriteable. AllowOverwrite on AllowRetrieveRestart on AllowStoreRestart on UseReverseDNS off IdentLookups off dazu noch mal im debugmode Code: root[etc]# proftpd -d9 -n - parsing '/usr/local/etc/proftpd.conf' configuration - FS: using system open() - FS: using system read() - dispatching directive 'ServerName' to module mod_core - dispatching directive 'ServerType' to module mod_core - dispatching directive 'DefaultServer' to module mod_core - dispatching directive 'Port' to module mod_core - dispatching directive 'Umask' to module mod_core - dispatching directive 'MaxInstances' to module mod_core - dispatching directive 'User' to module mod_core - dispatching auth request "getpwnam" to module mod_auth_file - dispatching auth request "getpwnam" to module mod_auth_unix - dispatching directive 'Group' to module mod_core - dispatching auth request "getgrnam" to module mod_auth_file - dispatching auth request "getgrnam" to module mod_auth_unix - FS: using system read() - dispatching directive 'DefaultRoot' to module mod_auth - dispatching directive 'AllowOverwrite' to module mod_xfer - dispatching directive 'AllowRetrieveRestart' to module mod_xfer - dispatching directive 'AllowStoreRestart' to module mod_xfer - dispatching directive 'UseReverseDNS' to module mod_core - FS: using system read() - FS: using system read() - dispatching directive 'IdentLookups' to module mod_core - FS: using system read() - FS: using system close() localhost - localhost - Config for pserver: localhost - DefaultServer localhost - Umask localhost - UserID localhost - UserName localhost - GroupID localhost - GroupName localhost - DefaultRoot localhost - AllowOverwrite localhost - AllowRetrieveRestart localhost - AllowStoreRestart localhost - IdentLookups localhost - ROOT PRIVS at mod_delay.c:292 localhost - FS: using system open() localhost - RELINQUISH PRIVS at mod_delay.c:294 localhost - FS: using system fstat() localhost - FS: using system close() localhost - SETUP PRIVS at main.c:2897 localhost - ROOT PRIVS at main.c:1991 localhost - RELINQUISH PRIVS at main.c:1998 localhost - ROOT PRIVS at main.c:2346 localhost - deleting existing scoreboard '/usr/local/var/proftpd/proftpd.scoreboard' localhost - opening scoreboard '/usr/local/var/proftpd/proftpd.scoreboard' localhost - RELINQUISH PRIVS at main.c:2372 localhost - ROOT PRIVS at inet.c:323 localhost - RELINQUISH PRIVS at inet.c:363 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. localhost - ROOT PRIVS at mod_delay.c:828 localhost - FS: using system open() localhost - RELINQUISH PRIVS at mod_delay.c:830 localhost - FS: using system write() localhost - FS: using system close() hoffentlich weis einer weiter danke im vorraus :) Titel: Re: Zwangs - Verzeichniss wid nicht beachtet Beitrag von: stonki am 12. März 2007, 08:47:51 lies Dir doch Deinen Debug Mode durch. Der bricht bereits beim Start ab !
Titel: Re: Zwangs - Verzeichniss wid nicht beachtet Beitrag von: VolGas am 12. März 2007, 12:39:48 Genau - der ProFTPD läuft schon mit einer anderen Konfiguration.
Außerdem wurde der ProFTPD meiner Ansicht nach ein wenig unglücklich compiliert: er sucht sein Konfigurationsfile in "/usr/local/etc/" und nicht in "/etc" wie normalerweise üblich. Wenn man das beachtet und nicht vergisst, dann ist das ok. Sonst wundert man sich nur, weshalb die Konfiguration scheinbar nicht angenommen wird. mfg. VolGas |