본문 바로가기
[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.
[Server구축/Tutorial] 계정 생성 [Server구축/Tutorial] 계정 생성 http://zetawiki.com/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4_%EA%B3%84%EC%A0%95_%EC%83%9D%EC%84%B1_useraddhttp://www.hobbyhobby.net/2012/02/linux.html-계정이 있는지 확인 # cat /etc/passwd | grep 계정명 -계정 + 홈 생성 # useradd 계정명 /etc/passwd 파일에 사용자 정보 설정/etc/group 파일에 그룹정보 설정/home/사용자명/ 위치에 홈 디렉토리 생성/var/spool/mail/ 디렉토리에 사용자명의 메일 파일 생성 -비밀번호 설정 # passwd 계정명 # echo 'CustomPassword' | passwd.. 2017. 5. 28.
[Django] 파이썬 웹 프로그래밍 - Django 웹 프레임워크 #2 [Django] 파이썬 웹 프로그래밍 - Django 웹 프레임워크 #1 -프로젝트란 개발 대상이 되는 전체 프로그램을 의미하며,프로젝트를 몇 개의 기능 그룹으로 나누었을 때, 프로젝트의 하위 서브 프로그램을 앱이라 말한다.즉 서브 프로그램인 앱을 개발하고, 이들을 모아 프로젝트 개발을 완성하게 되는 것이다. 이런 개념으로 프로젝트 디렉토리와 앱 디렉토리를 구분하고,코딩하는 파일도 프로젝트 파일인지 앱 파일인지 구분해서 적절한 위치에 저장해야 한다. -중요한 점은 하나의 앱이 여러 개의 프로젝트에 포함될 수 있기 때문에,앱을 한 번만 개발하고 이를 다른 프로젝트에 재사용하여 개발의 생산성을 높일 수 있다.앱 단위로 이들을 모아 프로젝트로 만들고,프로젝트를 모아서 더 .. 2016. 12. 12.
git 을 이용하여 svn repository 사용하기. git 을 이용하여 svn repository 사용하기. 출처 : http://viget.com/extend/effectively-using-git-with-subversion Repository Setup - $ git svn clone -s [svn 주소] [downloadPath] // -s 는 subversion repository 가 trunk/ branches/ tags/ 로 구성된 표준 layout 을 구성한다는 이야기이다. 위 명령어는 downloadPath 에 git repository 정보를 불러온다. 이 때 empty directory 는 불러오지 않는다. ( git 자체가 empty directory 를 track 하지 않는다. ) -svn:ignore 를 통해 ignore 된 파일.. 2016. 4. 24.
[android] Useful ADB commands [android] Useful ADB commands # Start an activity adb shell am start / # Power Button adb shell input keyevent 26 # Menu Button adb shell input keyevent 82 # Print all installed packages adb shell pm list packages [-f] // -f 옵션이 있으면 apk 위치까지 함께 표시된다. # Logcat filter by tagname adb logcat -s TAG_NAME_1 TAG_NAME_2 # Logcat filter by priority adb logcat "*:E" # Logcat filter by tagname and priority.. 2015. 12. 12.
[android] adb install multiple device 잡힐 때 device 하나 지정하는 방법 android, adb install multiple device 잡힐 때 device 하나 지정하는 방법 ex) List of devices attached98934ecc deviceemulator-5554 device adb -s 98934ecc install Test.apk -s option 으로 device code 를 잡아주면 된다. adb devices, bluestack, device code, Emulator, multiple devices, option, S, [android] adb install multiple device 잡힐 때 device 하나 지정하는 방법 2014. 4. 21.
[linux] top 에 대한 많은 이야기. linux, Top 에 대한 많은 이야기. 참고 사이트 : http://bluelimn.tistory.com/740 실행 명령어 $ top [옵션] Top 의 출력 내용 분석 -top - 11:17:50 up 33 days, 18:22, 7 users, load average: 0.47, 0.72, 1.78 현재시간 / uptime / 로그인 유저수 / 로드 에버리지 로드 에버리지란? -Tasks: 190 total, 2 running, 185 sleeping, 2 stopped, 1 zombie 전체 프로세스 수 / 현재 실행중 프로세스 수 / 유휴 프로세스 수 / 정지상태 프로세스 / 좀비 프로세스 -Cpu(s): 0.3%us, 0.6%sy, 0.0%ni, 97.9%id, 0.0%wa, 0.5%hi,.. 2014. 3. 17.
[linux] iptables( 방화벽 ) command tutorial linux, iptables( 방화벽 ) command tutorial. iptables ( 방화벽 ) 3가지 chain 존재. INPUT, OUTPUT, FORWARDINPUT 은 Linux 서버로 들어오는 것OUTPUT 은 Linux 서버에서 나가는 것.FORWARD 는 Linux 서버의 로직을 거치지 않고 바로 OUPUT 으로 나가는 것. -N : 새로운 chain 만들기-L : chain 규칙 보여주기-X : 비어있는 chain 없애기-P : chain 규칙 바꾸기-F : chain 에 있는 모든 규칙 지우기. -A : chain 에 새로운 규칙 추가 ( 맨 아래 추가 )-I : chain 에 규칙 삽입하기 ( 맨 앞 추가 )-R : chain 끼리 규칙 교환-D : chain 에 있는 규칙 제거.. 2014. 2. 17.
반응형