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

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -