Notice
Recent Posts
Recent Comments
Tags
- 웰카
- 우파푸른하늘
- CentOS
- drbd
- MotD
- Network
- etcd
- Auth
- openldap
- n15148
- port description
- Storage
- RHEL8
- mgmtip
- dell
- unix_socket
- CEP
- docker
- admin port
- maxscale
- 우파푸른하늘80만이벤트
- data-door
- snmp
- wildfly jboss
- Path
- mariadb
- perplexity
- n1548
- Kubernetes
- web&was apche htaccess
- banner
- vmware
- Galera Cluster
250x250
반응형
전산쟁이의 기억노트
Centos7(vsftp 3.x) chroot적용하기 본문
728x90
반응형
Centos7에서 vsftp 구성할때, 일반 사용자가 홈디렉토리 상단으로 올라오지 못하게 하는 chroot 옵션만 넣으면 FTP접근이 안됨.
응답 500 OOPS:vsftpd:refusing to run with writable root inside chroot()
$> vi /etc/vsftpd/vsftpd.conf
...
chroot_loca_user=YES
...
보통 이렇게만 설정하는데, Centos7(VSFTP 3.x)에서는 저렇게만 하면 접속이 안된다.
그래서 한줄 더 넣어줘야 한다. chroot가 적용된 사용자만 쓰기권한부여 하는 옵션..
$> vi /etc/vsftpd/vsftpd.conf
...
allow_writeable_chroot=YES
...
그리고 나서 서비스 재시작 하면 원하는 파일리스트가 잘 나온다~ 짜잔~~
$> systemctl restart vsftpd.service
출처 - http://igoni.kr/books/linux/page/centos7vsftp-3x-chroot
Centos7(vsftp 3.x) chr... | igoni.kr
Centos7에서 vsftp 구성할때, 일반 사용자가 홈디렉토리 상단으로 올라오지 못하게 하는 chroot 옵션만 넣...
igoni.kr
728x90
반응형
'Centos기술노트' 카테고리의 다른 글
/proc/meminfo 내용 분석 방법 (0) | 2022.08.12 |
---|---|
Centos7환경에서 VNC서비스 실행시킬때 vnc failed로 응답할때 (0) | 2022.08.12 |
centos7에서 vnc 구성하기 (0) | 2022.08.12 |
Centos7에 프록시 서버 설정하기 (0) | 2022.08.12 |
Centos 7 Run level 변경방법 (0) | 2022.08.12 |
Comments