聪明文档网

聪明文档网

最新最全的文档下载
当前位置: 首页> 课题_ROOT用户无法修改文件权限(LSATTR_CHATTR_ I 和 A 属性含义)-

课题_ROOT用户无法修改文件权限(LSATTR_CHATTR_ I 和 A 属性含义)-

时间:    下载该word文档


今天想在实验室分配的服务器上添加一个普通用户, 所以用root身份登录服务器后执行useradd命令,却提示无法读写
/etc/shadow文件; ls -l /etc/shadow发现什么权限都没有,于是就用chmod更改我(root/etc/shadow文件的权限, 让我万万没有想到的是,又提示无法更改该文件的权限,于是到网上查询之后,发现了这个帖子.问题解决了。 但,ia属性是什么东西?
我们可以通过man chattr查看(仅摘录相关部分: DESCRIPTION: "chattr" changes the file attributes on a Linux second extended file system. A file with the 'a' attribute set can only be open in append mode for writing. Only the superuser or a process possessing the CAP_LINUX_IMMUTABLE capability can set or clear this attribute. A file with the 'i' attribute cannot be modified: it cannot be deleted or renamed, no link can be created to this file and no data can be written to the file. Only the superuser or a process possessing the CAP_LINUX_IMMUTABLE capability can set or clear this attribute. What do 'a' attribute and 'i' attribute mean? append only (a, immutable (i.
  • 29.8

    ¥45 每天只需1.0元
    1个月 推荐
  • 9.9

    ¥15
    1天
  • 59.8

    ¥90
    3个月

选择支付方式

  • 微信付款
郑重提醒:支付后,系统自动为您完成注册

请使用微信扫码支付(元)

订单号:
支付后,系统自动为您完成注册
遇到问题请联系 在线客服

常用手机号:
用于找回密码
图片验证码:
看不清?点击更换
短信验证码:
新密码:
 
绑定后可用手机号登录
请不要关闭本页面,支付完成后请点击【支付完成】按钮
遇到问题请联系 在线客服