tetikmux
Goto Top

Vsftpd config

hallo

ich versuche gerade mein vsftpd.conf einzustellen (mein erstesmal)

meine Frage ist

1. wenn ich Anonymous bin wo ist der verzeichnis auf meinem linux rechner (Anonymous verzeichnis)
2. wenn ich Anonymous dekativiere und dafür ein lokalen user aktivere ist ja das verzeichnis unter /home/ftpuser!
aber ich kann wenn ich mich von außen anmelde (ftpuser) den ganzen linux von der Wurzel aus sehen.
Wie kann ich das verhindern und nur ein bestimmten pfad freigeben?

puhh

kann jemand mir helfen

Danke

Content-Key: 140654

Url: https://administrator.de/contentid/140654

Printed on: April 19, 2024 at 15:04 o'clock

Member: matze2010
matze2010 Apr 14, 2010 at 18:43:13 (UTC)
Goto Top
Hallo tetikmux,

zu 1: steht in der Manpage von vsftpd.conf unter String-Options:
anon_root
This option represents a directory which vsftpd will try to change into after an anonymous login. Failure is silently ignored.

zu 2: ebenda
chroot_list_file
The option is the name of a file containing a list of local users which will be placed in a chroot() jail in their home directory. This option is only relevant if the option chroot_list_enable is enabled. If the option chroot_local_user is enabled, then the list file becomes a list of users to NOT place in a chroot() jail.

Default: /etc/vsftpd.chroot_list

Beachte bei 2: Wenn " chroot_local_user is enabled" dann "becomes a list of users to NOT place in a chroot() jail"

Ich denke, das war was du wolltest?

Lg
Matze
Member: tetikmux
tetikmux Apr 20, 2010 at 20:41:40 (UTC)
Goto Top
hallo matze2010

danke für deine antwort

also ich bin noch nicht so fit mit der ganze sache.

ich habe in der vsftpd.conf folgendes gemacht!


#You may restrict local users to their home directories. See the FAQ for

  1. the possible risks in this before using chroot_local_user or

  1. chroot_list_enable below.

chroot_local_user=YES (nur das habe ich geändert)

#

  1. You may specify an explicit list of local users to chroot() to their home

  1. directory. If chroot_local_user is YES, then this list becomes a list of

  1. users to NOT chroot().

#chroot_local_user=YES

#chroot_list_enable=YES

  1. (default follows)

#chroot_list_file=/etc/vsftpd.chroot_list

#


jetzt komme ich nicht mehr in andere verzeichnise ich bleibe nur im /home/xxx

aber wie kann ich ihm sagen dein verzeichnis ist /home/ftp/ftpspacex1
Member: matze2010
matze2010 Apr 23, 2010 at 08:12:02 (UTC)
Goto Top
Hallo,
Zitat von @tetikmux:

  1. You may specify an explicit list of local users to chroot() to their home
[...]
jetzt komme ich nicht mehr in andere verzeichnise ich bleibe nur im /home/xxx

aber wie kann ich ihm sagen dein verzeichnis ist /home/ftp/ftpspacex1

"chroot() to their home". Home-Verzeichnisse werden in

/etc/passwd

für jeden Benutzer gesetzt, auch für ftp Benutzer.

Lg
Matze