[Feedback on issues] 太多文件锁定为只读
Tofloor
poster avatar
tfusr
deepin
2025-06-24 17:24
Author

为什么要锁定文件为只读?导致很多软件,源码编译安装不了。。。。 显示太业余了。。。。。

Reply Favorite View the author
All Replies
deepin-流云
Moderator
Community OP
2025-06-24 17:32
#1

https://bbs.deepin.org.cn/post/286633

可以参考这篇帖子

Q6:作为想要“折腾”系统的开发者,要如何关闭磐石系统的“只读保护”?

在磐石不可变系统开启“只读保护”功能的情况下,用户无法对其进行任何修改操作。

即使尝试使用 root 权限进行写操作,系统也会拒绝并提示“只读文件系统”错误,有效防止用户或恶意软件对系统关键文件的意外或恶意修改。

若您想要关闭“只读保护”,请参考以下命令(执行完命令后,需重启系统才可以生效)。

  • deepin 25 Alpha 及后续版本
sudo deepin-immutable-writable enable -d /usr
​
  • deepin 25 Preview
sudo deepin-immutable-ctl disable-system-protect enable
​

注:关闭系统保护后,系统中 /usr 目录会以读写的模式进行挂载,用户可通过 root 修改 /usr 中的内容。

磐石不可变系统并不推荐使用者关闭系统保护功能,即使关闭保护,当您再次开启时,期间的修改可能会被还原,这取决于具体的命令。

Reply View the author
buyike
deepin
2025-06-24 17:36
#2

???你不知道磐石系统???agree

Reply View the author
叁陆玖
deepin
2025-06-24 20:14
#3

看等机不像是新手。

Reply View the author
猫粮
deepin
2025-06-24 20:29
#4

这防的不就是你了么,懂行的分分钟就解开了,不懂的乱搞把系统整坏

Reply View the author
tfusr
deepin
2025-06-25 00:44
#5
猫粮

这防的不就是你了么,懂行的分分钟就解开了,不懂的乱搞把系统整坏

防我?有这必要? 对于有些基础的,必然是it人员,折腾是必需的。 对于没什么基础的,连sudo都不知道,何来涉及修改系统相关的?

Reply View the author
tfusr
deepin
2025-06-25 00:49
#6
buyike

???你不知道磐石系统???agree

以前听过这个说法,没详细去了解过,并不知道是锁定为只读。 这种做法,多余,it人员肯定会折腾,升级修改是必然的(deepin 经常会出现基础软件太低版本)

Reply View the author
remyxo
deepin
2025-06-25 08:28
#7
sudo deepin-immutable-writable enable -d /usr

​
  • deepin 25 Preview
sudo deepin-immutable-ctl disable-system-protect enable

总感觉我们开发人员的英语是典型的Chinese English。命令名字起得很随意,

deepin-immutable-ctl disable-system-protect enable,难道启用保护要执行deepin-immutable-ctl disable-system-protect disable

deepin-immutable-ctl system-protect [ enable | disable ] 岂不是更直观???

Reply View the author
BigFish
deepin
2025-06-30 08:11
#8

把桌面系统搞的跟手机系统一样,看不到前途

Reply View the author
晚秋(lateautumn)
Moderator
2025-09-17 20:34
#9
tfusr

以前听过这个说法,没详细去了解过,并不知道是锁定为只读。 这种做法,多余,it人员肯定会折腾,升级修改是必然的(deepin 经常会出现基础软件太低版本)

理解吧,现在磐石好象比较时髦。隔壁新系统也是不可变系统。

有一位大佬推出了一下一键关闭磐石。对于我来讲,就是微信下载的文件上锁比较烦。在一位大佬的指导下,搞了一个脚本。也还不错。

Reply View the author