파일 소유에서의 root 사용자와 로그인 사용자 구분

2019. 6. 6. 14:36임베디드/리눅스시스템프로그래밍

$ stat 파일 혹은 디렉토리

 

리눅스 프로그래밍 시 stat에서 struct로 뽑아와서 uid로 이를 구분지을 수 있다

https://github.com/surinoel/linux/blob/master/%EC%BB%A4%EB%84%90%EB%82%B4%EB%B6%80%EA%B5%AC%EC%A1%B0/3%EC%9E%A5/6.c

'임베디드 > 리눅스시스템프로그래밍' 카테고리의 다른 글

GNU C library download  (0) 2019.06.10
wrapper 함수란  (0) 2019.06.07
sched_setscheduler  (0) 2019.06.05
fork 후 _exit를 반드시 해야하는 이유  (0) 2019.06.04
.bashrc와 .bash_profile의 차이  (0) 2019.06.04