タグ

圧縮とトラブルに関するiwwのブックマーク (1)

  • tar展開時にCannot utime: Operation not permittedが発生

    Summary tar ボールを展開した時に tar: foo: Cannot utime: Operation not permitted tar: foo: Cannot change mode to rwxrwxr-x: Operation not permitted というエラーが発生した時の解決方法をメモ 再現条件 オーナーが他ユーザのディレクトリを tar で展開したディレクトリで上書きしようとすると 更新日時の更新 パーミッションの変更 で上記エラーが発生する 再現手順 $ mkdir foo $ chmod a+w foo/ $ sudo chown root:root foo $ ls -l total 4 drwxrwxrwx 2 root root 4096 Jul 13 20:55 foo foo ディレクトリはその他ユーザに "w" のフラグが立っているので、ファ

    tar展開時にCannot utime: Operation not permittedが発生
    iww
    iww 2015/12/05
    mとpをつければ良さそう
  • 1