리눅스 분류
계정 홈에 제로보드xe설치할 때 퍼미션 불가능
작성자 정보
- youdw 작성
- 작성일
컨텐츠 정보
- 2,277 조회
- 2 댓글
- 0 추천
- 목록
본문
페도라 9 에 제로보드xe 설치했습니다.1. useradd -d /home/aaa aaa2. passwd aaa3. chmod 707 aaa /home/aaa4. chown aaa /home/aaa5. chgrp aaa /home/aaa6. ftp로 XE 업로드(저는 rz 명령으로 업로드했습니다)7. tar xvfz xe.full.1.1.5.tgz8. chmod 707 xe
1번,2번,3번,4번,5번은 root 계정으로6번,7번,8번은 aaa 계정으로작업을 했습니다.
http://211.182.247.250/xe ---- /var/www/html에 설치(root 계정)http://211.182.247.250/~aaa/xe ---- /home/aaa/public_html에 설치(aaa 계정)
root 계정에 설치된 것은 제대로 작동되지만aaa 계정은 설치 중에 퍼미션 불가능 에러가 뜹니다.여기저기 검색해봐도 해당되는 내용이 없습니다.포맷하고 다시 설치하는 것도 그렇고.... ㅡ.ㅡ;도움바랍니다..
아래는 setroubleshoot 브라우저의 내용입니다...
요약:
SELinux는 http 파일로 httpd reading and writing 액세스하지 못하게
합니다.
상세 설명:
SELinux prevented httpd reading and writing access to http files. Ordinarily
httpd is allowed full access to all files labeled with http file context. This
machine has a tightened security policy with the httpd_unified turned off, this
requires explicit labeling of all files. If a file is a cgi script it needs to
be labeled with httpd_TYPE_script_exec_t in order to be executed. If it is
read-only content, it needs to be labeled httpd_TYPE_content_t, it is writable
content. it needs to be labeled httpd_TYPE_script_rw_t or
httpd_TYPE_script_ra_t. You can use the chcon command to change these contexts.
Please refer to the man page "man httpd_selinux" or FAQ
(http://fedora.redhat.com/docs/selinux-apache-fc3) "TYPE" refers to one of
"sys", "user" or "staff" or potentially other script types.
액세스 허용:
"httpd_unified" 부울을 true로 변경하는 것은 이러한 액세스를
허용합니다: "setsebool -P httpd_unified=1"
Fix Command:
setsebool -P httpd_unified=1
자세한 정보:
소스 문맥 system_u:system_r:httpd_t:s0
대상 문맥 unconfined_u:object_r:httpd_user_content_t:s0
대상 객체 ./files [ dir ]
Source httpd
Source Path /usr/sbin/httpd
Port <알려지지 않음>
Host youdw
Source RPM Packages httpd-2.2.9-1.fc9
Target RPM Packages
정책 RPM selinux-policy-3.3.1-95.fc9
Selinux 활성화 True
정책 유형 targeted
MLS 활성화 True
강제 모드 Enforcing
플러그인명 httpd_unified
호스트명 youdw
플랫폼 Linux youdw 2.6.26.5-45.fc9.i686 #1 SMP Sat Sep 20
03:45:00 EDT 2008 i686 i686
통지 카운트 700
First Seen 2009년 02월 10일 (화) 오전 12시 42분 32초
Last Seen 2009년 02월 10일 (화) 오전 11시 08분 09초
Local ID 05b91924-9751-4ef3-9efe-a45072f50aeb
줄 번호
원 감사 메세지
host=youdw type=AVC msg=audit(1234231689.783:1412): avc: denied { write } for pid=2347 comm="httpd" name="files" dev=sda8 ino=13508886 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:httpd_user_content_t:s0 tclass=dir
host=youdw type=SYSCALL msg=audit(1234231689.783:1412): arch=40000003 syscall=39 success=no exit=-13 a0=b9881610 a1=1ed a2=10c7a78 a3=b9881610 items=0 ppid=2317 pid=2347 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm="httpd" exe="/usr/sbin/httpd" subj=system_u:system_r:httpd_t:s0 key=(null)
관련자료
-
이전
-
다음
댓글 2
gambler님의 댓글
- gambler
- 작성일
혹시 selinux 때문에 그런게 아닐까요??
# setenforce 0
치시고 한번 해보세요
# setenforce 0
치시고 한번 해보세요
유동우님의 댓글
- 유동우
- 작성일
SELinux 활성화 상태에서는 해결할 수 없는 문제인가요?