我有一个文件夹,my-folder
. 从它的父目录,我首先做:
sudo chown -cR matthewslouismarie: my-folder
如果我这样做:chmod -cR 600 my-folder
,我得到:
chmod: cannot access 'my-folder/build.sh': Permission denied
chmod: cannot access 'my-folder/vmdk': Permission denied
chmod: cannot access 'my-folder/.git': Permission denied
chmod: cannot access 'my-folder/run.sh': Permission denied
chmod: cannot access 'my-folder/docker': Permission denied
chmod: cannot access 'my-folder/.gitignore': Permission denied
我不应该完全拥有这个文件夹及其内容吗?
笔记:
运行sudo chmod -cR 600 my-folder
不会打印任何内容。matthewslouismarie
是我输入时得到的whoami
。