macos - 有没有办法删除所有者对 macOS 中文件的读取权限?
问题描述
有什么办法可以取消所有者在 macOS 中读取文件的权限?我知道没有理由这样做,但我必须上学,而且我在任何地方都找不到答案。删除我的写权限可以正常工作,但是当我尝试删除我的读取权限时,它会自动给我我的读写权限。正如您在控制台中看到的那样,当我使用 chmod -v -v (额外详细)时,它显示了应该更改为的正确权限,但随后在检查时它们并没有更改为...
thijs@Thijss-MacBook-Air-2 week6 % ls -l
total 16
-rw----r-- 1 thijs staff 12 Oct 11 21:10 greeting.txt
-rw-r--r-- 1 thijs staff 0 Oct 11 21:10 hello.txt
-rw------- 1 thijs staff 15 Oct 11 21:11 weather.txt
thijs@Thijss-MacBook-Air-2 week6 % chmod -v -v u-w weather.txt
weather.txt: 0100600 [-rw------- ] -> 0100400 [-r-------- ]
thijs@Thijss-MacBook-Air-2 week6 % ls -l
total 16
-rw----r-- 1 thijs staff 12 Oct 11 21:10 greeting.txt
-rw-r--r-- 1 thijs staff 0 Oct 11 21:10 hello.txt
-r-------- 1 thijs staff 15 Oct 11 21:11 weather.txt
thijs@Thijss-MacBook-Air-2 week6 % chmod -v -v u-r weather.txt
weather.txt: 0100400 [-r-------- ] -> 0100000 [---------- ]
thijs@Thijss-MacBook-Air-2 week6 % ls -l
total 16
-rw----r-- 1 thijs staff 12 Oct 11 21:10 greeting.txt
-rw-r--r-- 1 thijs staff 0 Oct 11 21:10 hello.txt
-rw------- 1 thijs staff 15 Oct 11 21:11 weather.txt
解决方案
推荐阅读
- spring-boot - 如何在 Thymeleaf 的翻译中使用链接(锚标记)?
- python-3.x - django 自定义用户注册模型中密码重置的默认模板名称
- powershell - 用于下载 .Net Core 5.0.4 Hosting Bundle Installer 的 Powershell 命令
- git - 为什么直接在节点上运行 cmd 时 Jenkins 不能从 Git 获取?
- git - 项目解决方案正在显示 Git 文件
- python - 我无法解决这个问题“IndexError: list index out of range”
- java - 在 Prod env Java 批处理中有时会因未找到类异常而出现 NoClassdeffoundError 失败。一天或一周至少发生一次
- python - 在 webtech 模块 python 中创建 apps.json 文件
- multithreading - Schedulers.boundedElastic 似乎使用相同的线程进行处理
- python - ImportError: DLL load failed while importing cv2: The specified module could not be found in pycharm with python 3.9