亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
最近訪問(wèn)板塊 發(fā)新帖
查看: 1911 | 回復(fù): 3
打印 上一主題 下一主題

chown 的怪問(wèn)題! [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2007-05-15 17:07 |只看該作者 |倒序?yàn)g覽
今天不小心做個(gè)誤操作,但也引出一個(gè)問(wèn)題,

bash-2.05# pwd
/export/evadisk/home/hartlen
bash-2.05# ls -la
total 46
drwxr-xr-x   4 yyq  mail         512 Mar 10 18:34 .
drwxr-xr-x 486 yyq  mail       11264 May 14 11:08 ..
-rw-------   1 hartlen  mail        4042 Jun 26  2006 .bash_history
drwx------   7 hartlen  mail         512 Jun 16  2006 .openwebmail
-rw-------   1 hartlen  mail          54 Jun 26  2006 .sh_history
-rw-------   1 hartlen  mail         760 Nov  1  2006 .vacation.msg
drwx------   2 hartlen  mail         512 Sep 12  2006 mail
-rw-r--r--   1 hartlen  mail           7 Nov 30 15:19 sms.ok
-rw-r--r--   1 hartlen  mail          42 Jul  4  2006 tmp.txt
-rw-r--r--   1 hartlen  mail         163 Jul 12  2006 user.txt
我發(fā)現(xiàn) ./ and ../ owner不是我
bash-2.05# chown -Rf hartlen ./
大家知道結(jié)果回是怎樣嗎。很出互我的預(yù)料
bash-2.05# cd /export/evadisk/home/
bash-2.05# ls -al
drwxr-xr-x   4 hartlen  mail         512 Sep 12  2006 mail
drwxr-xr-x   4 hartlen  mail         512 May 15  2006 yyq
drwxr-xr-x   4 hartlen  mail         512 Sep 12  2006 hartlen


bash-2.05# chown -Rf hartlen ../
bash-2.05# cd /export/evadisk/home/
bash-2.05# ls -al
drwxr-xr-x   4 hartlen  mail         512 Sep 12  2006 mail
drwxr-xr-x   4 hartlen  mail         512 Sep 12  2006 yyq
drwxr-xr-x   4 hartlen  mail         512 Sep 12  2006 hartlen
也是一樣 這個(gè)還好理解一點(diǎn),../ 就是/export/evadisk/home/
而后我的chown就是把/export/evadisk/home/下的所有owner都改變了

那為什么chown -Rf hartlen ./ 也會(huì)改變父文件夾下的使用文件夾的所有者啊!


bash-2.05# mkdir yyf
bash-2.05# cd yyf/
bash-2.05# ls -la
total 24
drwxr-xr-x   2 root     other        512 May 15 16:55 .
drwxr-xr-x 487 yyq  mail       11264 May 15 16:55 ..


bash-2.05# cd /export/evadisk
bash-2.05# ls -l
drwxr-xr-x   4 yyq mail         512 Sep 12  2006 home

感覺(jué)都是亂亂的!

哪個(gè)仁兄可以給個(gè)解釋!

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2007-05-16 08:03 |只看該作者
There is no suprise here.
Let's say you are in /export/evadisk/home/hartlen directory.   . represents current directory, i.e. /export/evadisk/home/hartlen. So chown hartlen ./ changes the ownership of /export/evadisk/home/hartlen. If you issue chown hartlen ../ , it will change the ownership of /export/evadisk/home to hartlen.

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2007-05-17 10:40 |只看該作者
to 樓上
Let's say you are in /export/evadisk/home/hartlen directory.   . represents current directory, i.e. /export/evadisk/home/hartlen. So chown hartlen ./ changes the ownership of /export/evadisk/home/hartlen

現(xiàn)在是我chown hartlen ./  。 changes the ownership of /export/evadisk/home 下的所有fold的owner,不僅僅是 /export/evadisk/home/hartlen 文件夾

怪哉!

論壇徽章:
0
4 [報(bào)告]
發(fā)表于 2007-05-17 22:40 |只看該作者
現(xiàn)在是我chown hartlen ./  。 changes the ownership of /export/evadisk/home 下的所有fold的owner,不僅僅是 /export/evadisk/home/hartlen 文件夾

Can you duplicate the problem? That is not what I have experienced.
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過(guò)ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP