3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

エラー "cp: preserving permissions for `hogehoge`: サポートされていない操作です" が出た

Last updated at Posted at 2014-08-12

現象

Sambaで共有構築しているファイルサーバ中のディレクトリを,
別にマウントしてるHDD中のディレクトリ以下にコピーしようとするとタイトルのようなエラーが発生することがあった.
コピー元ディレクトリ中の全てのファイルに対してではなく,ごく一部のファイルに対して起こる.
管理者権限で実行しても変わらない.

$ cp -cpR [cp Src] [cp Dist] cp: preserving permissions for 'hogehoge': サポートされていない操作です

結論と解決策

参照:
Samba とACL機能
SETFACL

Samba上でのファイルへのアクセス制御(Access Control List: ACL)における拡張ACLエントリに,
コピー先のファイルシステム(具体的にはなんだろう?)が対応していないと発生するエラー,だと理解.
(そもそもこの設定を保持したままコピーはできない?)

とにかく,このACLエントリを削除すれば正常にコピーできるようになる.
$ setfacl -bR *.*

-b: 全ての拡張ACLエントリを削除(基本ACLエントリは保持)
-R: recursive

ここまで.

3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?