vsftpd 홈디렉토리 벗어날수있게 설정하기

Linux 2015. 12. 20. 21:59 posted by CecilDeSK
반응형

vsftpd 홈디렉토리 벗어날수있게 설정하기


vsftpd 의 기본설정은 홈디렉토리를 벗어나지 못하도록 되어있다.

vsftpd.conf에 홈디렉토리 설정을 수정하고, chroot_list에 해당 계정을 추가해 주도록 한다.


vsftpd.conf화일에서 chroot_list_enable=YES 와 chroot_list_file=/etc/vsftpd.chroot_list 의 주석을 제거하도록 하자


$vi /etc/vsftpd.conf


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

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

# users to NOT chroot().

# (Warning! chroot'ing can be very dangerous. If using chroot, make sure that

# the user does not have write access to the top level directory within the

# chroot)

chroot_local_user=YES

#chroot_list_enable=YES

# (default follows)

#chroot_list_file=/etc/vsftpd.chroot_list


chroot_list에 홈디렉토리를 벗어나도록 설정할 계정을 입력한다.


$vi /etc/vsftpd.chroot_list 

root

cecil


root와 cecil 계정을 허용하도록 설정


반응형