User Tools

Site Tools


Sidebar

Translations of this page:



最近の更新



Tag Cloud

en:01_linux:99_その他:operation_not_permitted_削除できないファイル

Operation not permitted Cannot delete file

If an illegal file or similar is placed, there may be cases where the placed file cannot be deleted.
This is something that manipulates file attributes other than permissions in Linux's ext2 and ext3 file systems.

Cannot be deleted normally

# rm -rf ttyload
rm: cannot remove `ttyload': Operation not permitted

confirm lsattr

# lsattr ttyload 
s---ia------- ttyload

The file can be deleted if its attributes are modified.

# chattr -ia ttyload
# lsattr ttyload 
s------------ ttyload

If you want to prevent the file from being deleted, you can add attributes to it.

# chattr +ia ttyload
# lsattr ttyload 
s---ia------- ttyload

complete to remove

# rm -rf ttyload
en/01_linux/99_その他/operation_not_permitted_削除できないファイル.txt · Last modified: 2023/06/22 10:58 by matsui