我正在处理一个具有读/写权限的 nfs 共享。一切似乎都工作正常,除了当我将文件复制到子目录时。然后该cp
命令抱怨文件创建不成功。当我检查文件时,复制确实发生了。
[user@system mytest]$ touch myfile
[user@system mytest]$ mkdir mydir
[user@system mytest]$ cp myfile mydir/
cp: cannot create regular file ‘mydir/myfile’: Operation not permitted
[user@system mytest]$ ls -l mydir
total 0
-rwx------ 1 user group users 0 Sep 27 19:00 myfile
重新运行该cp
命令不会触发其他错误消息。该mv
命令运行没有问题。
有任何想法吗?
跟踪输出
stat("myfolder/", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
stat("myfile", {st_mode=S_IFREG|0700, st_size=5, ...}) = 0
stat("myfolder/myfile", 0x7ffebd019c10) = -1 ENOENT (No such file or directory)
open("myfile", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0700, st_size=5, ...}) = 0
open("myfolder/myfile", O_WRONLY|O_CREAT|O_EXCL, 0700) = -1 EPERM (Operation not permitted)