36.在 UNIX-based 作業系統,下列何者可將 a1.txt 之權限設定為 owner 可讀寫執行、group 可讀寫、other 可讀?
(A) chmod 777 a1.txt
(B) chmod 764 a1.txt
(C) chmod 654 a1.txt
(D) chmod 467 a1.txt
答案:登入後查看
統計: A(35), B(359), C(22), D(9), E(0) #598570
統計: A(35), B(359), C(22), D(9), E(0) #598570
詳解 (共 4 筆)
#2694856
改變權限 ,chmod
檔案權限的改變使用的是chmod這個指令,而權限的設定方法有兩種分別是使用數字或者是符號來進行權限的變更。
數字類型改變檔案權限:Linux檔案的基本權限就有九個,分別是owner/group/others三種身份各有自己的read/write/execute權限,其中,我們可以使用數字來代表各個權限,各權限的分數對照表如下: r:4 w:2 x:1
每種身份(owner/group/others)各自的三個權限(r/w/x)分數是需要累加的
owner為可讀可寫可執行 owner=rwx=4+2+1=7
group為可讀可寫 group=rw-=4+2+0=6
other為可讀 others=r-- =4+0+0=4
chmod [rwxrwxrwx] 檔案或目錄 => chmod 764 a1.txt
參考網站:http://linux.vbird.org/linux_basic/0210filepermission.php#chmod
8
0
#1378312
權限代表數字:讀r=4 , 寫w=2 , 執行x=1 ,
4
0
#1010409
chmod 764 a1.txt ,可將 a1.txt 之權限設定為 owner 可讀寫執行、group 可讀寫、other 可讀
3
0