您的位置 首页 linux其他

mv: failed to preserve ownership for ‘/mnt/2.txt’: Operation not permitted

 

在Linux下经常进行多用户下的拷贝,移动等操作。

[root@web01 ~]#mv 2.txt /mnt
mv: failed to preserve ownership for ‘/mnt/2.txt’: Operation not permitted

在向/mnt/nfs/目录下拷贝数据时出现如下提示:
  mv: failed to preserve ownership for ‘/mnt/nfs/COCO/train2014/COCO_train2014_000000021504.jpg’: Permission denied
  mv: failed to preserve ownership for ‘/mnt/nfs/COCO/train2014/COCO_train2014_000000321849.jpg’: Permission denied
  mv: failed to preserve ownership for ‘/mnt/nfs/COCO/train2014/COCO_train2014_000000219410.jpg’: Permission denied
  mv: failed to preserve ownership for ‘/mnt/nfs/COCO/train2014/COCO_train2014_000000309598.jpg’: Permission denied

显示已经移动失败了,其实没有,是如下原因:

  type vfat

    There’s your problem. vfat knows nothing about Linux permissions. It’s not an issue of USB mounts, but of file-systems used.

    Oh: and to answer your question - no, it’s not a problem.

这是因为目的地址是vfat文件系统,该系统不知道Linux下的权限问题,所以无法保存权限,这不是问题,可以正常移动。

欢迎来撩 : 汇总all

白眉大叔

关于白眉大叔linux云计算: 白眉大叔

热门文章