1. 특수권한
setuid 4735
[root@sevas ~]# chmod u-s /usr/bin/passwd
[root@sevas ~]# chmod u+s /usr/bin/passwd
[root@sevas ~]# chmod 4755 /etc/shadow setuid 소유자 권한
drwxrwxrwt. sticky bit
[root@sevas ~]# chmod 1777 /sss/t1.txt 다른계정이 만든 파일이 삭제 되지 않는다
2. wheel 그룹
wheel그룹은 속한 그룹 사용자들만 su root를 사용할수 있도록 하는것
복원
chmod 4755 /bin/su
chgrp root /bin/su
userdel -r t4
[root@sevas ~]# groupadd wheel
[root@sevas ~]# usermod -G wheel sevas 부그룹 wheel 추가
[root@sevas ~]# chown .wheel /bin/su wheel 그룹에 사용자는 사용가능 다른사용자는su(x)
[root@sevas ~]# chmod 4750 /bin/su
3. 심볼링크
[root@sevas ~]# mkdir linktest
[root@sevas ~]# echo linktest file > linktest/basefile
[root@sevas ~]# cat linktest/basefile
linktest file
[root@sevas ~]# cd linktest/
[root@sevas linktest]# ls
basefile
[root@sevas linktest]# ln basefile hlink
[root@sevas linktest]# ln -s basefile slink
[root@sevas linktest]# ls -l
합계 8
-rw-r--r-- 2 root root 14 2015-04-23 10:21 basefile
-rw-r--r-- 2 root root 14 2015-04-23 10:21 hlink
lrwxrwxrwx 1 root root 8 2015-04-23 10:22 slink -> basefile
[root@sevas linktest]# mv basefile ..
[root@sevas linktest]# cat /basefile 위치 이동되면 깨짐
[root@sevas linktest]# mv ../basefile . 다시 원위치하면 잘됨
4. RPM