Titel: FTP User eintragen? Beitrag von: GeGo am 27. Dezember 2003, 19:13:36 Hallo
Also ich möchte einen user eintragen der sich nur in dem Ordner /var/www und den unterordner aufhalten darf. Wie mache ich das? Danke Titel: FTP User eintragen? Beitrag von: Anonymous am 27. Dezember 2003, 21:31:23 Den User erstellen, in der proftpd.conf dann:
Code: DefaultRoot /var/www Auf diese Weise werden aber alle anderen User, die du später hinzufügst, auch in dieses Verzeichnis geleitet. Das ist vielleicht nicht beabsichtigt. Titel: FTP User eintragen? Beitrag von: Anonymous am 09. Januar 2004, 13:40:04 Dann schreibst einfach den Usernamen dahinter....
DefaultRoot /var/www hansi DefaultRoot ~ hansi landet dann im www..... alle anderen in ihren home Verzeichnissen. Titel: FTP User eintragen? Beitrag von: Anonymous am 22. Januar 2004, 15:40:21 Zitat von: "Anonymous" Den User erstellen, in der proftpd.conf dann: Code: DefaultRoot /var/www Auf diese Weise werden aber alle anderen User, die du später hinzufügst, auch in dieses Verzeichnis geleitet. Das ist vielleicht nicht beabsichtigt. sorry habe da auch ein problem wie komme ich in die Proftpd.conf rein ??? nutze webmin und da finde ich ihm nicht, oder muss ich das irgen dwie über shell machen ??? bin ganz neu mein erster server keine ahnung was ich machen muss. mfg wolfkill Titel: FTP User eintragen? Beitrag von: Wolfkill am 22. Januar 2004, 15:52:32 server01:~# defaultroot /var/www/???
bash: defaultroot: command not found das bekomme ich als fehlermeldung Titel: FTP User eintragen? Beitrag von: stonki am 22. Januar 2004, 17:10:28 Zitat von: "Wolfkill" server01:~# defaultroot /var/www/??? bash: defaultroot: command not found das bekomme ich als fehlermeldung IN DIE PROFTPD.CONF ! Titel: FTP User eintragen? Beitrag von: Wolfkill am 22. Januar 2004, 22:34:35 danke jetzt weiss ich es auch nur nägstes mal bitte sagt mir wie ich was in die confic schreiben kann,denke das wird einigen so gehen die sich nicht auskennen.
Titel: FTP User eintragen? Beitrag von: stonki am 23. Januar 2004, 09:39:14 Zitat von: "Wolfkill" danke jetzt weiss ich es auch nur nägstes mal bitte sagt mir wie ich was in die confic schreiben kann,denke das wird einigen so gehen die sich nicht auskennen. http://www.linuxbu.ch/pdf4/online.htm http://www.oreilly.de/german/freebooks/rlinux3ger/linux_wegIVZ.html Und nehme es mir nicht übel: Aber Linux (alle Unix Systeme) sind deutlich komplexer als jedes Windows System und auch deutlich schwieriger für einen Anfänger zu administrieren (das dreht sich dann später mal). Hier kümmern wir uns um ProFTPD, wenn jemand nicht weiss, wie man Dateien editieren kann (z.B. mit vi, joe, mc) dann hilft es Dir wenig wenn ich Dir das sage, da Du nach 5min wieder etwas nicht weisst. Da musst Du schon Zeit investieren. Ich empfehle dir ausserdem mal den "Kopfler" zu kaufen, ein wirklich gutes Linux Standardwerk. Ausserdem melde Dich in der User Mailingliste Deiner Distributionen an. Wenn Du Linux Profi werden willst, trenne Dich für 4 Monate auch von Deiner Freundin :) cu stonki Titel: FTP User eintragen? Beitrag von: Wörsty am 23. Januar 2004, 10:19:26 vi /etc/proftpd.conf (oder wo die ist...)
Zur Zeile gehen, wo du hin willst (Pfeil hoch und runter) i für insert defaultroot /var/www/ hansi <Enter> defaultroot ~ <Enter> <Esc> drücken dann :wq Fertig. Zeile löschen mit <Esc> drücken dann dd Dann wieder i für insert ... Titel: FTP User eintragen? Beitrag von: Wolfkill am 23. Januar 2004, 22:33:39 Zitat von: "Wörsty" vi /etc/proftpd.conf (oder wo die ist...) Zur Zeile gehen, wo du hin willst (Pfeil hoch und runter) i für insert defaultroot /var/www/ hansi <Enter> defaultroot ~ <Enter> <Esc> drücken dann :wq Fertig. Zeile löschen mit <Esc> drücken dann dd Dann wieder i für insert ... danke für deine hilfe aber irgend wie will er das nicht machen ka warum. habe das als standardtso drin stehen wogenau muss es rein wenn ich das rein schreib wie du es mir sagt geht der ftpservernicht mehr???? Zitat ServerType standalone DeferWelcome off ShowSymlinks on MultilineRFC2228 on DefaultServer on AllowOverwrite on TimeoutNoTransfer 600 TimeoutStalled 600 TimeoutIdle 1200 DisplayLogin welcome.msg DisplayFirstChdir .message LsDefaultOptions "-l" DenyFilter \*.*/ DefaultRoot ~ RequireValidShell off AllowForeignAddress on # Uncomment this if you are using NIS or LDAP to retrieve passwords: #PersistentPasswd off # 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 # Normally, we want files to be overwriteable. <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 AllowOverwrite on </Directory> # A basic anonymous configuration, no upload directories. ## <Anonymous ~ftp> ## User ftp ## Group nogroup ## # We want clients to be able to login with "anonymous" as well as "ftp" ## UserAlias anonymous ftp ## ## RequireValidShell off ## ## # Limit the maximum number of anonymous logins ## MaxClients 10 ## ## # We want 'welcome.msg' displayed at login, and '.message' displayed ## # 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> kann es sein das ich echt zudumm dazubin????? und ich will jetzt nicht extra nur für denn ftpserver linux lernen!!!!!! irgend wann muss ich es e. mfg wolfkill Titel: FTP User eintragen? Beitrag von: Wörsty am 26. Januar 2004, 18:51:54 Zitat von: "Wolfkill" Zitat von: "Wörsty" vi /etc/proftpd.conf (oder wo die ist...) Zur Zeile gehen, wo du hin willst (Pfeil hoch und runter) i für insert defaultroot /var/www/ hansi <Enter> defaultroot ~ <Enter> <Esc> drücken dann :wq Fertig. Zeile löschen mit <Esc> drücken dann dd Dann wieder i für insert ... danke für deine hilfe aber irgend wie will er das nicht machen ka warum. habe das als standardtso drin stehen wogenau muss es rein wenn ich das rein schreib wie du es mir sagt geht der ftpservernicht mehr???? Zitat ServerType standalone DeferWelcome off ShowSymlinks on MultilineRFC2228 on DefaultServer on AllowOverwrite on TimeoutNoTransfer 600 TimeoutStalled 600 TimeoutIdle 1200 DisplayLogin welcome.msg DisplayFirstChdir .message LsDefaultOptions "-l" DenyFilter \*.*/ defaultroot /var/www/ hansi DefaultRoot ~ RequireValidShell off AllowForeignAddress on # Uncomment this if you are using NIS or LDAP to retrieve passwords: #PersistentPasswd off # 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 # Normally, we want files to be overwriteable. <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 AllowOverwrite on </Directory> # A basic anonymous configuration, no upload directories. ## <Anonymous ~ftp> ## User ftp ## Group nogroup ## # We want clients to be able to login with "anonymous" as well as "ftp" ## UserAlias anonymous ftp ## ## RequireValidShell off ## ## # Limit the maximum number of anonymous logins ## MaxClients 10 ## ## # We want 'welcome.msg' displayed at login, and '.message' displayed ## # 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> kann es sein das ich echt zudumm dazubin????? und ich will jetzt nicht extra nur für denn ftpserver linux lernen!!!!!! irgend wann muss ich es e. mfg wolfkill :?! :debug: |