February 26, 2010

Linux檔案和目錄存取權限

擁有者(u) 擁有群組(g) 其他(o)

目錄 以設定查詢 新增刪除 執行 內的檔案有依附性(依父)

cd /tmp
mkdir test ; ll -d test (root創 權限755)
cd test ; cat >f1 ; chmod 666 f1
su - u1
cd /tmp ; cd test ; ll ;cat f1
echo "another line" >>f1
rm f1 ? touch f2 ?

使用 其他(o) user 為u1

因屬其他 所以目錄看775 的 XX5 此為 ls and cd 故無 新增刪除

檔案為666 看XX6 故能 讀 寫 不能執行

rm f1 不能刪 touch 也不能建

dir 改為 757 u1 就能 rm touch 就算file 改為000 也能 rm touch

rm touch 看 dir

file 為 read write (X)

0推薦此文章
Today's Visitors: 0 Total Visitors: 15
Personal Category: Uncategorized Articles Topic: feeling / personal / murmur
[Trackback URL]

Post A Comment









Yes No



Please input the magic number:

( Prevent the annoy garbage messages )
( What if you cannot see the numbers? )
Please input the magic number

誰來收藏
Loading ...
unlog_NVPO 0