-
[root@nagios test]
-
[root@nagios test]
-
[root@nagios test]
-
[root@nagios test]
-
total 0
-
-rw-r-Sr-- 1 nagios nagios 0 Mar 2800:41 setgid
-
-rwSr--r-- 1 nagios nagios 0 Mar 2800:41 setuid
-
-rw-r--r-T 1 nagios nagios 0 Mar 2800:41 sticky
-
[root@nagios test]
-
[hello@nagios test]$ pwd
-
/root/test
-
[hello@nagios test]$ echo hello >> setuid
-
bash: setuid: Permission denied
-
[hello@nagios test]$ sh setuid
-
hello
-
[nagios@nagios test]$ exit
-
exit
-
[root@nagios test]
-
[root@nagios test]
-
[hello@nagios test]$ ll sticky
-
-rw-rw-rwT 1 nagios nagios 0 Mar 2800:45 sticky
-
[hello@nagios test]$ rm sticky
-
rm: cannot remove `sticky': Permission denied
-
[hello@nagios test]$ stat sticky
-
File: `sticky'
-
Size: 0 Blocks: 0 IO Block: 4096 regular empty file
-
Device: fd00h/64768d Inode: 134198 Links: 1
-
Access: (1666/-rw-rw-rwT) Uid: ( 500/ nagios) Gid: ( 500/ nagios)
-
Access: 2013-03-2800:45:37.875928997 +0800
-
Modify: 2013-03-2800:45:37.875928997 +0800
-
Change: 2013-03-2800:46:28.050580800 +0800