메뉴 건너뛰기

리눅스 관련 모음

본문시작

2011.10.04 15:58

su 명령의 문제점

조회 수 54831 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

국산 통나무 수공예 남원제기, 남원목기

자료가 도움이 되셨다면
혼수용품제수용품 필요시
남원제기 공식 홈페이지 http://남원제기.kr
남원목기 공식 홈페이지 http://otchil.kr
에서 구매 해 주세요
정성껏 모시겠습니다.
 
/bin/su 는 root 로 접속 할수 있게 해주는 명령으로 보안상 매우중요한 파일입니다.

따라서 그룹지정을 하여 실행 제한을 하는데 그룹을 wheel 로 설정하고 퍼미션을

4750 으로 설정하여 wheel 그룹에 속한 계정만 이를 실행할 수 있게하는 것입니다.

ddong 계정은 /etc/group 에 wheel 그룹에 추가를 하여 일반계정으로 접속 후

su 명령을 통해 root 로 접속할 수 있게 하여 놓았으며 다른 계정은 wheel 그룹에

속하지 않아 su 명령을 실행할 수 없습니다.

[root@ns ~]# su - ddong
[ddong@ns ~]$ su -
Password:
[root@ns ~]#

[root@ns ~]# su - mysql  
-bash-3.2$ su -
-bash: /bin/su: Permission denied
-bash-3.2$

그리고 이전 문의하신 su: /bin/bash: Permission denied 는 이와는 별도의 사항으로

/bin 디렉토리 퍼미션이 어째서인지 750 으로 되어 있어 /bin/bash 에 접근이 되지 않아

발생한 에러로 /bin 의 퍼미션을 755로 변경해 드린것입니다.

이와 관련 su 나 sudo 등은 /etc/pam.d 의 설정에 영향을 받아 제어가 되니

/etc/pam.d/su 파일의 내용을 참고해 보시기 바랍니다.

그리고 이외에도 selinux 설정으로 추가 보안사항을 적용할 수 있는데

ls -Z /bin/su
-rwsr-x---  root wheel system_u:object_r:su_exec_t:s0   /bin/su

와 같이 ls 나 ll 에 -Z 옵션으로 확인하실 수 있으니 참고하시기 바랍니다.

감사합니다.
   

  1. Starting Dovecot Imap: Error: service(pop3-login): listen(*, 110) failed: Address already in use

    Date2013.06.29 Category에러해결 By햇빛소년 Views25540
    Read More
  2. Starting spamd: Apr 29 16:41:34.934 [14162] warn: server socket setup failed, retry 1: spamd: could not chown 에러해결

    Date2012.04.29 By햇빛소년 Views32282
    Read More
  3. su 명령의 문제점

    Date2011.10.04 By햇빛소년 Views54831
    Read More
  4. SURBL을 이용해 스팸 정확도 극대화하기

    Date2011.04.14 By햇빛소년 Views51157
    Read More
  5. The ClamAV Plugin --> clamav.cf , clamav.pm

    Date2013.07.07 Category설치관련 By햇빛소년 Views15139
    Read More
  6. TIFF 설피시 /usr/local/include/jmorecfg.h:263:16: error: expected identifier before numeric constant 에러

    Date2013.06.04 Category에러해결 By햇빛소년 Views17737
    Read More
  7. unable to include potential exec "include/top.html" in parsed file 에러 해결!!!

    Date2013.01.11 Category에러해결 By햇빛소년 Views30602
    Read More
  8. utf8_mime2text() has new signature,

    Date2014.03.01 Category에러해결 By햇빛소년 Views3363
    Read More
  9. What do these PHP mbstring settings do?

    Date2013.08.25 Category설치관련 By햇빛소년 Views11387
    Read More
  10. win8.1 F8 안전모드 부팅하기

    Date2015.02.22 Category에러해결 By햇빛소년 Views1054
    Read More
  11. XE 데이터 이전시 "댓글" 사라지는 문제 해결...

    Date2014.02.13 Category에러해결 By햇빛소년 Views0
    Read More
  12. yum install 시에 Transaction check error: 발생할 때

    Date2017.01.12 Category에러해결 By햇빛소년 Views5330
    Read More
  13. ZendGuardLoader 설치 에러

    Date2013.01.10 Category에러해결 By햇빛소년 Views24950
    Read More
  14. ZendGuardLoader.so: undefined symbol: compiler_globals

    Date2013.01.19 Category에러해결 By햇빛소년 Views26187
    Read More
  15. zone_resigninc:dns_journal_open -> unexpected error

    Date2015.02.07 Category에러해결 By햇빛소년 Views0
    Read More
  16. 경영학과의 눈물… 예고된 취업 바늘구멍

    Date2014.10.12 Category설치관련 By햇빛소년 Views4310
    Read More
  17. 공기정화 식물을 키워라!

    Date2011.05.19 By햇빛소년 Views36963
    Read More
  18. 그누보드 영카트 대신택배 배송조회 깨짐 현상 정확한 URL 링크 주소.

    Date2022.08.23 Category에러해결 By햇빛소년 Views665
    Read More
  19. 기가인터넷 CAT.6 인터넷 속도 100Mb 인식 문제 해결

    Date2023.03.17 Category에러해결 By햇빛소년 Views654
    Read More
  20. 내년부터 시험없이 국가기술자격 딴다

    Date2011.05.19 By햇빛소년 Views40710
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 Next
/ 10