Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- laravel
- 안드로이드
- SeLinux
- ajax
- jquery
- File
- CentOS
- 리눅스
- 정규식
- NetBeans
- tomcat
- java
- 이클립스
- curl
- properties
- DB
- MySQL
- javascript
- error
- JSON
- Linux
- input
- Spring
- larravel
- 톰캣
- html
- 와일드카드
- Android
- junit
- php
Archives
- Today
- Total
합쭈기 programming
[CentOS7]SELinux 보안 정책 수정 본문
SELinux가 구동되는 상태에서 >> setenforce 1
폴더 Access가 안될때가 있다. 보안정책에 따른 접근 문제인데..
chcon 명령어로 보안정책을 수정한다.
사용자 수정
chcon -u [user] [directory or file]
Role 수정
chcon -r [role] [directory or file]
Type 수정
chcon -t [type] [directory or file]
보안정책은 ls-Z 로 확인 가능하다.
참고로 httpd의 타입은 httpd_sys_content_t 이다.
'Linux' 카테고리의 다른 글
| [vsftp]500 Illegal PORT command. (0) | 2016.06.16 |
|---|---|
| [CentOS] nagios에 virtual host 모니터링 기능 추가 (0) | 2016.02.11 |
| [CentOS] Cannot retrieve metalink for repository: epel. Please verify its path and try again (0) | 2015.10.26 |
| [CentOS7] mysql 설치 (0) | 2015.07.15 |
| [CentOS7]톰캣 자동 실행 (0) | 2015.06.29 |