파일을 chmod할 수 없는 이유는 무엇입니까?

파일을 chmod할 수 없는 이유는 무엇입니까?
[nathanb@ka /x/sim/nathanb/nbsim1] ls -al ,nvram
-rw-r--r--    1 root     root      2097152 Jul  5  2011 ,nvram
[nathanb@ka /x/sim/nathanb/nbsim1] sudo chmod a+w ,nvram 
chmod: changing permissions of `,nvram': Operation not permitted

rw다른 것들을 수정할 수 있기 때문에 볼륨이 마운트된 것 같습니다 . 하지만 루트 사용자라도 이 파일에 su접근할 수는 없습니다 .chmod

[root@ka /x/sim/nathanb/nbsim1] chmod +w ,nvram
chmod: changing permissions of `,nvram': Operation not permitted

나는 strace하나를 만들었고 chmod이것을 보았습니다 :

stat64(",nvram", {st_mode=S_IFREG|0644, st_size=2097152, ...}) = 0
chmod(",nvram", 0666)                   = -1 EPERM (Operation not permitted)

이것이 출력이다stat

[root@ka /x/sim/nathanb/nbsim1] stat ,nvram
Name: ,nvram             Size: 2097152       Perms: 0644/-rw-r--r--
Type: Regular File     Blocks: 4120           User: 0/root
Inode: 205777           IOsize: 32768         Group: 0/root

Access Time: Sat Jul 23 09:27:31 2011         Links: 1
Modify Time: Tue Jul  5 18:36:35 2011     FS device: 28
Change Time: Sat Jul 23 09:30:35 2011       Maj/Min: 0/0

이상한 uid 문제가 발생하지 않는다는 것을 증명하기 위해:

[root@ka /x/sim/nathanb/nbsim1] id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),503(mailman),21(slocate),30(gopher),500(http),14(uucp),188(xelus),16(radadmin)

어떤 아이디어가 있나요?

답변1

/nfs 아래에 태그를 지정했습니다. 파일이 NFS 파일 시스템에 있는 경우 no_root_squash클라이언트의 루트가 파일 시스템에 대한 권한을 변경할 수 있도록 파일을 서버로 내보내야 할 수도 있습니다 .

관련 정보