sftp, vsftp 상위폴더 접근제한 > server

본문 바로가기

server

sftp, vsftp 상위폴더 접근제한

작성일 14-05-29 11:30

페이지 정보

작성자서방님 조회 379회 댓글 0건

본문

vi /etc/ssh/sshd_config

AllowFiles "testuser:/home/testuser/*"

ex)
AllowFiles "유저명:/유저홈경로/*"

openssh 5.x 부터 가능

 

===================================

 

vsftp 에서 상위 폴더로 이동하는 : 것 막기

/etc/vsftpd/vsftpd.conf 를 열어서

제일 마지막 줄에


chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/vsftpd.chroot_list


를 추가 해 주고

/etc/vsftpd/vsftpd.chroot_list 를 만들어 주고

상위폴더로 제한하고 하는 아이디를 적어 주면 됩니다.

댓글목록

등록된 댓글이 없습니다.

전체 356건 12 페이지
게시물 검색
Copyright © 서방님.kr All rights reserved.
PC 버전으로 보기