当前位置:   article > 正文

/etc/security/cacerts 只读权限_cp: /system/etc/security/cacerts/9a5ba575.0: read-

cp: /system/etc/security/cacerts/9a5ba575.0: read-only file system

问题:文件夹 /etc/security/cacerts 只读权限

beyond1q:/ # cp /data/misc/user/0/cacerts-added/9a5ba575.0  /etc/security/cacerts/
cp: /etc/security/cacerts//9a5ba575.0: Read-only file system

## 实体机,/dev/root 挂载在 /,所以以读写权限重新挂载

  1. HWDUK:/ # echo admin > /etc/security/cacerts/test
  2. /system/bin/sh: can't create /etc/security/cacerts/test: Read-only file system
  3. 1|HWDUK:/ # cat /proc/mounts | grep "/ "
  4. /dev/root / ext4 ro,seclabel,relatime,data=ordered 0 0
  5. HWDUK:/ # mount -o remount,rw /
  6. HWDUK:/ # echo admin > /etc/security/cacerts/test
  7. HWDUK:/ # cat /etc/security/cacerts/test
  8. admin

## 模拟器,/dev/block/sda6 挂载在 /system

  1. beyond1q:/ # echo test > /etc/security/cacerts/test
  2. /system/bin/sh: can't create /etc/security/cacerts/test: Read-only file system
  3. beyond1q:/ # cat /proc/mounts | grep "/system "
  4. /dev/block/sda6 /system ext4 rw,seclabel,noatime 0 0
  5. 1|beyond1q:/ # mount -o remount,rw /system
  6. beyond1q:/ # echo test > /etc/security/cacerts/test
  7. beyond1q:/ # cat /etc/security/cacerts/test
  8. test

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/413890
推荐阅读
相关标签
  

闽ICP备14008679号