티스토리 뷰
18.FTP를 사용한 파일 공유
*FTP 버즈 그룹
============
- 그룹 소유권 : ftp
- 권한 : 쓰기/실행 O, 읽기 X
*SELinux
========
- 파일/디렉토리 유형 컨텍스트 : public_content_rw_t
- 부울 : allow_ftp_anon_write
(#setsebool -P allow_ftp_anon_write on)
/etc/vsftpd/vsftpd.conf
===================
anon_upload_enable = YES chown_upload = YES chown_username = daemon anon_umask = 077 (default value) |
*IPTables
========
/etc/sysconfig/iptables-config
IPTABLES_MODEULES="nf_conntrack_ftp nf_nat_ftp" |
/etc/sysconfig/iptables
-A INPUT -p tcp --dport 21 -j ACCEPT |
or
#iptables -I INPUT -p tcp --dport 21 -j ACCEPT #iptables -I INPUT -m state --state ESTABLISED,RELATED -j ACCEPT |
anonymous_enable=YES
anon_upload_enable=YES
anon_other_write_enable=YES
anon_world_readable_only=NO
anon_umask=0022
anon_upload_enable 는 upload 권한
anon_other_write_enable 는 rename, delete 권한
anon_world_readable_only 는 download (file open) 권한. NO 해야 다운로드 됨
umask는 알아서 주면 되는데 0022 해두면 file은 644로 생성이 된다.
'IT > RHEL' 카테고리의 다른 글
[RHCE] Red Hat 교육 정리 3 (0) | 2014.08.17 |
---|---|
[RHCE] 부팅시 문제해결 - Trouble Shooting (0) | 2014.08.17 |
[RHCE] CIFS (SAMBA) 파일공유 (0) | 2014.08.17 |
[RHCE] NFS 파일 공유 (0) | 2014.08.17 |
[RHCE] 캐싱전용 DNS 서버 (0) | 2014.08.17 |
- Total
- Today
- Yesterday
- docker
- 캐나다부동산
- git proGit
- 온타리오
- Canada
- TORONTO
- 토론토정착서비스
- 토론토
- Red Hat
- 정착서비스
- cert
- BC주
- 밀튼
- 부모님초청이민
- certification
- 캐나다
- 옥빌
- RHEL
- BTBS
- redhat
- basement
- 미시사가
- ansible
- 부동산분석
- 인터넷
- Jay
- 우드워킹
- Certificate
- 벌링턴
- RHCE
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |