TAILIEUCHUNG - wiley publishing suse linux 9 bible phần 7

Tham khảo tài liệu 'wiley publishing suse linux 9 bible phần 7', ngoại ngữ, ngữ pháp tiếng anh phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Chapter 13 Working with Files 315 According to the permissions that you see in the listing you should certainly be able to delete the file but attempting to do so gives Operation not permitted. Also if you try to edit the file you ll find that you can t save to it. But the situation is even stranger than that user@bible su Password root@bible home user rm afile rm remove write-protected regular file afile y rm cannot remove afile Operation not permitted This looks very odd indeed The owner can t delete the file although he appears to have the right to do so but even root can t delete the file. The reason is that the file has the immutable bit set root@bible home user lsattr afile ----i---------afile The file has the special file attribute immutable set which effectively means that no one has the right to change the file. To set a file to be immutable do the following root@bible home user chattr i afile This adds the immutable attribute i . To remove the attribute do the following root@bible home user chattr -i afile root@bible home user lsattr afile --------------afile There are easily imagined practical situations in which you might want to use this functionality to prevent accidental deletion. For example you might want to set this attribute on certain configuration files so as to force yourself to think very hard before modifying them. Use of the immutable attribute on particular system files is also often recommended as a way of adding an additional level of security to the system. For further details see the chattr and lsattr man pages. File ACLs Relatively recently Linux has gained the concept of file and directory ACLs access control lists . In contrast to the file attributes discussed previously which control the behavior of the file itself making it undeletable or immutable for example file ACLs are all about who can access the file and in what way. These ACLs mean that the sharing of files and directories with specifically named users can now be achieved

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.