Linux出現cp: preserving permissions for `filename’: Operation not supported錯誤及解決辦法

來源:互聯網
上載者:User

本文連結:http://blog.csdn.net/kongxx/article/details/7010472

問題:

今天在Linux上使用cp和mv命令操作NFS上的檔案時總是出現以下錯誤

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

原因:

這個錯誤是由於cp和mv命令對於ACL的支援,mv命令保持ACL設定資訊,cp命令在使用-p,-a參數時保留ACL設定資訊。但是如果從一個支援ACL的檔案系統向一個不支援ACL的檔案系統移動或帶ACL屬性的拷貝,則會得到類似下面這樣的錯誤提示

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

設定了ACL的檔案在ls -l時可以看到這樣的情況,

-rw-rw----+ 1 allen chen 0 Jun 2 09:52 filename有個加號在第一個列的末尾。

解決辦法:

修改/etc/fstab檔案,對要mount的檔案系統指定ACL選項,如下:

<host>:/data/export/pcc /pcc nfs noacl
參考:

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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.