2013年10月10日星期四

linux in chgrp appear cannot acess file



------ Solution ------------------------------------ --------
==, you must first enter this directory ah !

cd /root
chgrp zhuqi install.log


operation default in your current directory to go looking for the file . . Just like you alone , like ls displays only the current directory . .
However , look at your root @ zhuqi behind the characters, you should be in a directory named zhuqi it ......
------ Solution ----------- ---------------------------------
now root privileges , you can directly chgrp zhuqi / root / install.log install.log change the owning group
------ Solution --------------------------- -----------------
method 1:
first switch to the directory where the install.log , then run chgrp
cd / root /
chgrp zhuqi install.log

Method 2:
use the full path
chgrp zhuqi / root / install.log
------ For reference only ------------------------ ---------------
landlord can give you more detailed information point . Command to execute when an error occurs , there install.log in what directory
------ For reference only ------------------------ ---------------

------ For reference only ------------------------------------- -
upstairs solution
pwd view of the current directory
current directory is not / root /
and no install.log file in the current directory , it can not find the
------ For reference only ----------------- ----------------------
tips very clearly , what problems it
------ For reference only ---- -----------------------------------
Thank you upstairs ah !

没有评论:

发表评论