본문 바로가기

permission

SetUID / SetGID Special File Permissions 출처 : http://kin.naver.com/qna/detail.nhn?d1id=1&dirId=10302&docId=128463841&page=1#answer1안녕하세요.. 답변이 될지 모르겠으나 Set UID / Set GID에 대해 설명드리겠습니다. Set UID는 chmod 4000 권한으로 실행되며, Set GID는 chmod 2000 권한으로 실행합니다.둘다 설정하시려면 6000 권한으로 설정 하시면 됩니다.( 여기서 000은 일반 퍼미션 이며, 파일 실행권한은 꼭 가지고 있어야 합니다. ) 파일 퍼미션 설정이 기본적으로 rwx/rwx/rwx 로 이런 식으로 설정이 되나,Set UID설정 시 rws/rwx/rwx로 변경.Set GID설정 시 rwx/rws/rwx로 변경.둘다 설정 시 rws/r.. 더보기
The result of access(ls, cp) according parent directory permission | 상위 디렉토리의 권한에 따른 access(ls, cp) 결과 ./SE_API/1111 ls -al ./SE_API/1111-rwxr-xr-x parent directory user permission r(4) x(1) (0) status drwxr-xr-- 2 root root 4096 10월 26 18:15 . drwxrwxrwx 11 root root 4096 10월 27 13:25 .. -rwxr-xr-x 1 root root 5 10월 26 18:18 1111 drwxr-x--x 2 root root 4096 10월 26 18:15 . drwxrwxrwx 11 root root 4096 10월 27 13:09 .. -rwxr-xr-x 1 root root 5 10월 26 18:18 1111 drwxr-x--- 2 root root 4096 10월 26 18.. 더보기
linux shell script file 이 실행이 안될때. # ls -al-rwxrwxrwx shell shell 1631963 2014-07-30 21:16 mobibench_arm_3.7.11-rwxrwxrwx shell shell 232 2014-08-26 10:22 msh_dio.sh 모두 권한이 있는데도 불구하고 shell 을 실행하면 permission error 가 발생함. # ./msh_dio.sh1rm failed for /cache/test.db0*, No such file or directory./msh_dio.sh[9]: ./mobibench_arm_3.7.11_dio_0819: can't execute: Permission deniedfailed on '/cache/test.db0' - No such file or directory 정확하.. 더보기