プログラムブログ

PHP、Database、ネットワーク、サーバセキュリティ

スティッキービット

誰でも書き込みできるが削除は所有者しかできないように設定するために存在するのがスティッキービット。
/tmp で利用。

[root@vmcent5 tmp]# ls -ld /tmp
drwxrwxrwt 19 root root 4096 12月 29 18:57 /tmp

最後が「t」になっている。

設定するときは chomod o+t /tmp もしくは chmod 1777 /tmp

No comments yet. Be the first.

Leave a reply