{"id":40,"date":"2009-03-23T09:42:30","date_gmt":"2009-03-23T01:42:30","guid":{"rendered":"http:\/\/karyleong.net\/?p=40"},"modified":"2009-03-23T09:42:30","modified_gmt":"2009-03-23T01:42:30","slug":"cant-edit-a-file-in-linux-even-the-root","status":"publish","type":"post","link":"https:\/\/karyleong.net\/?p=40","title":{"rendered":"Can&#8217;t edit a file in Linux even the root"},"content":{"rendered":"<p>In some case, the Linux have some files will not allow user edit directly. It will append immutable permission to the file. The file will not allow every one to edit or delete, unless the attribute has been removed.<\/p>\n<p><em>lsattr path_to_file<\/em><\/p>\n<p>Will show the addition attribute for the file or folder.<\/p>\n<p><em>chattr -i path_to_file<\/em><\/p>\n<p>Will change the file to immutable permission.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In some case, the Linux have some files will not allow user edit directly. It will append immutable permission to the file. The file will not allow every one to edit or delete, unless the attribute has been removed. lsattr path_to_file Will show the addition attribute for the file or folder. chattr -i path_to_file Will &#8230; <a title=\"Can&#8217;t edit a file in Linux even the root\" class=\"read-more\" href=\"https:\/\/karyleong.net\/?p=40\" aria-label=\"More on Can&#8217;t edit a file in Linux even the root\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[71,19],"_links":{"self":[{"href":"https:\/\/karyleong.net\/index.php?rest_route=\/wp\/v2\/posts\/40"}],"collection":[{"href":"https:\/\/karyleong.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/karyleong.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/karyleong.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/karyleong.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=40"}],"version-history":[{"count":1,"href":"https:\/\/karyleong.net\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":41,"href":"https:\/\/karyleong.net\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions\/41"}],"wp:attachment":[{"href":"https:\/\/karyleong.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/karyleong.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/karyleong.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}