Titel: durch DefaultRoot FTP-Home-Verzeichnis ändern Beitrag von: hkaiser am 25. April 2004, 15:43:04 Hallo zusammen,
Ich have folgendes Problem. Ich habe einen Benutzer mit dem Namen madyar, der der Gruppe madyar angehört. Da sehr viele Daten in seinen Home-Verzeichniss liegen, die ich nicht über FTP freigeben will habe ich mich entschloßen das Verzeichnis zu ändern. Also habe ich DefaultRoot auf ein anders Verzeichniss gesetzt und den Daemon neu gestartet. Leider komme ich noch immer in das Home Verzeichnis /home/madyar und nicht in das angegeben Verzeichnis. Was kann ich machen das der Benutzer madyar(der der einzige FTP-Benutzer ist) in ein anderers Verzeichnis umgeleitet wird als sein Home-Verzeichnis? Hier meine Konfiguration: # 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 iTeam FTP-Server" ServerType standalone DefaultServer on # Allow FTP resuming. # Remember to set to off if you have an incoming ftp for upload. AllowStoreRestart 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 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. # # Normally, we want files to be overwriteable. <Directory /> AllowOverwrite on </Directory> # Needed for NIS. PersistentPasswd off # Default root can be used to put users in a chroot environment. # As an example if you have a user foo and you want to put foo in /home/foo # chroot environment you would do this: # # #drakwizard_pxe_b <Global> <Limit LOGIN> Order allow,deny Allow from all Deny from all </Limit> RootLogin off </Global> #drakwizard_pxe_end ServerAdmin hkaiser@gmx.at RootLogin off AllowForeignAddress on AllowRetrieveRestart on DirFakeUser off nobody LogFormat auth "%v [%P] %h %t "%r" %s" Extendedlog /var/log/proftpd/ftp.log UseReverseDNS off LogFormat default "%h %l %u %t "%r" %s %b" SystemLog /var/log/proftpd/proftpd.log DefaultRoot /hda3/Samba/FTPDOWNLOAD madyar DisplayConnect /etc/banner-proftpd DirFakeGroup off nobody DeleteAbortedStores off IdentLookups off DeferWelcome on TimesGMT off TransferLog /var/log/proftpd/xferlog AccessGrantMsg " -- Guest access granted for %u --" ServerIdent off LogFormat write "%h %l %u %t "%r" %s %b" AccessDenyMsg " !-!! ACCESS DENY !!-! SEEMS YOU HAVE NO RIGHT THERE !!" Danke für eure Hilfe im Voraus hkaiser Titel: durch DefaultRoot FTP-Home-Verzeichnis ändern Beitrag von: stonki am 27. April 2004, 14:28:54 DefaultRoot /hda3/Samba/FTPDOWNLOAD madyar
hat der User der Gruppe "madyar" auf das Verzeichnis zugriff ? su <User> cd /hda3/Samba/FTPDOWNLOAD klappt das ? cu stonki |