[linux] real uid(ruid), effective uid(euid), chmod 를 통한 SetUID, SetGID, StickyBit 설정
[linux] real uid(ruid), effective uid(euid), chmod 를 통한 SetUID, SetGID, StickyBit 설정 ruid, euid -real uid( real user id ) 는 실제 본인의 id 를 이야기한다.이 녀석의 값은 변하지 않는다. ( root 는 바꿀 수 있다. ) -euid 는 현재 휘두를 수 있는 권한을 나타낸다. euid 는 기본적으로 ruid 와 같은 값이다.그러나 setuid bit 이 세팅된 프로그램을 수행시킬 때, 다른 값으로 할당될 수 있다. -rwsr-xr-x 1 root root 45396 may 25 2012 /usr/bin/passwd passwd 파일( setuid bit 이 세팅되어 있음 )을 user2 라는 ruid 를 가..
2018. 1. 26.
[mac] batch 파일 만들기
[mac] batch 파일 만들기 #!/ /bin/bash[명령어 집합] 위와 같은 포맷으로 파일을 만들어 저장한다.이것을 bash script 라고 부른다. -다음 명령어를 통해서 executable 로 만들어줘야 한다. > chmod +x [방금 생성한 bash script 파일] /bin/bash, bash script, bash 파일, batch 파일, chmod, chmod +x, Executable, MAC, [mac] batch 파일 만들기, 배쉬 스크립트, 배쉬 파일, 실행, 포맷
2016. 9. 12.