0
点赞
收藏
分享

微信扫一扫

chmod: changing permissions of ‘xxx‘: Operation not permitted

yundejia 2023-02-28 阅读 60


想让普通用户可以清空内存:

echo 1 > /proc/sys/vm/drop_caches;

过程:

chmod 766 /proc/sys/vm/drop_caches;     
报错:chmod: changing permissions of 'xxx': Operation not permitted
是因为有比root更高级的用户。
lsattr /proc/sys/vm/drop_caches; # 看下他的属性


举报

相关推荐

0 条评论