root用户在自身所属目录创建文件时遭遇权限拒绝错误的求助
root用户在自身所属目录创建文件时遭遇权限拒绝错误的求助
大家好,我碰到一个特别费解的问题:明明是以root用户身份操作,在一个所有者和所属组都是root、权限也设置为drwx------的目录下创建文件,居然收到了"Permission denied"的错误!
具体操作和错误信息如下:
root@ubuntu:/sa/# touch test touch: cannot touch 'test': Permission denied
我查了这个目录的挂载情况:
~# df -h /sa Filesystem Size Used Avail Use% Mounted on /dev/fuse 225T 201T 25T 90% /sa
目录本身的权限信息:
# ls -ld /sa drwx------ 1 root root 4096 Mar 23 2023 /sa
尝试检查扩展属性的时候,又遇到了报错:
# lsattr /sa lsattr: Function not implemented While reading flags on /sa/jour lsattr: Function not implemented While reading flags on /sa/mount lsattr: Function not implemented While reading flags on /sa/scratch lsattr: Function not implemented While reading flags on /sa/snap
也确认了root用户的条目是正常的:
# cat /etc/passwd |grep -i root root:x:0:0:root:/root:/bin/bash
磁盘还有25T的可用空间,权限也没问题,但就是创建不了文件。会不会是这个fuse文件系统的限制?有没有大佬能帮忙分析下原因,给点解决思路?
备注:内容来源于stack exchange,提问作者Avijit Roy
相关产品推荐
相关产品推荐

