Linux appears cp:preserving permissions for ' filename ': Operation not supported error and resolution __linux

Source: Internet
Author: User

This article link: http://blog.csdn.net/kongxx/article/details/7010472


Problem:

The following error always occurs when using the CP and MV commands on Linux today to manipulate files on NFS

cp:preserving permissions for ' filename ': Operation not supported

Reason:

This error is due to the support of the CP and MV commands for ACLs, the MV command maintains ACL settings information, and the CP command retains ACL settings when using the-p,-a parameter. However, if you move from an ACL-enabled file system to a file system that does not support ACLs or a copy of an ACL attribute, you get an error like the following

cp:preserving permissions for ' filename ': Operation not supported

Files that have ACLs set on Ls-l can be seen in this case,

-RW-RW----+ 1 Allen Chen 0 June 2 09:52 filename
There is a plus sign at the end of the first column.

Solution:

Modify the/etc/fstab file to specify ACL options for the file system to mount, as follows:

<HOST>:/DATA/EXPORT/PCC       /PCC        NFS         

Reference:

Http://a3linux.blogspot.com/2005/09/linuxacl.html




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.