Setting Linux Permissions to Prevent other users from Deleting/Modifying files -
i know noob question... on centos6, want allow view directories , read files in path while owner can modify or delete. cannot understand whu not work. here single file example of did:
# user1: vim x chmod 744 x -rwxr--r-- 1 user1 user1 6 oct 2 20:55 x # user2: rm x rm: remove write-protected regular file `x'? yes
removing file changes containing directory, need prevent user 2 changing directory x
lives in.
i.e. if path x /home/a/b/c/x
chmod go-w /home/a/b/c
Comments
Post a Comment