메뉴 건너뛰기

리눅스 관련 모음

본문시작

2011.10.04 15:58

su 명령의 문제점

조회 수 54656 추천 수 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. win8.1 F8 안전모드 부팅하기

    Date2015.02.22 Category에러해결 By햇빛소년 Views740
    Read More
  2. What do these PHP mbstring settings do?

    Date2013.08.25 Category설치관련 By햇빛소년 Views11074
    Read More
  3. utf8_mime2text() has new signature,

    Date2014.03.01 Category에러해결 By햇빛소년 Views3088
    Read More
  4. unable to include potential exec "include/top.html" in parsed file 에러 해결!!!

    Date2013.01.11 Category에러해결 By햇빛소년 Views30286
    Read More
  5. TIFF 설피시 /usr/local/include/jmorecfg.h:263:16: error: expected identifier before numeric constant 에러

    Date2013.06.04 Category에러해결 By햇빛소년 Views17422
    Read More
  6. The ClamAV Plugin --> clamav.cf , clamav.pm

    Date2013.07.07 Category설치관련 By햇빛소년 Views14881
    Read More
  7. SURBL을 이용해 스팸 정확도 극대화하기

    Date2011.04.14 By햇빛소년 Views50988
    Read More
  8. su 명령의 문제점

    Date2011.10.04 By햇빛소년 Views54656
    Read More
  9. Starting spamd: Apr 29 16:41:34.934 [14162] warn: server socket setup failed, retry 1: spamd: could not chown 에러해결

    Date2012.04.29 By햇빛소년 Views32110
    Read More
  10. Starting Dovecot Imap: Error: service(pop3-login): listen(*, 110) failed: Address already in use

    Date2013.06.29 Category에러해결 By햇빛소년 Views25214
    Read More
  11. ssh로 특정 ip접근 hosts.deny 자동 추가

    Date2011.05.12 By햇빛소년 Views45290
    Read More
  12. ssh 포트변경 및 iptables 수정

    Date2013.06.25 Category설치관련 By햇빛소년 Views15240
    Read More
  13. squirrelmail에서 메일 삭제시 Error: file_dotlock_create... 에러에 대하여.

    Date2013.06.30 Category에러해결 By햇빛소년 Views20665
    Read More
  14. sql_mode = NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

    Date2014.03.22 Category에러해결 By햇빛소년 Views4856
    Read More
  15. specifies multiple packages 대처법

    Date2012.02.22 By햇빛소년 Views27959
    Read More
  16. spamassassin 에러 Can't locate Mail/SpamAssassin/CompiledRegexps/body 0.pm in @INC

    Date2013.06.24 Category에러해결 By햇빛소년 Views16044
    Read More
  17. spamassassin /320.pre -> Rule2XSBBody 체크시 에러 해결법

    Date2011.04.13 By햇빛소년 Views48101
    Read More
  18. Spam Assassin + ClamAV 바이러스 필터 연동하기

    Date2011.03.29 By햇빛소년 Views74186
    Read More
  19. Solving the "Can't connect to UNIX socket" and "/parts: Access denied" problems.

    Date2011.04.08 By햇빛소년 Views49951
    Read More
  20. sendmail[8569]: auxpropfunc error invalid parameter supplied

    Date2013.07.11 Category에러해결 By햇빛소년 Views15687
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 Next
/ 10