Skip to main content
added 19 characters in body
Source Link
nohillside
  • 104.5k
  • 42
  • 222
  • 275

You can use Access Control Lists for this. Run

chmod +a "USERID:deny:delete_child" DIRECTORY

to prevent the user USERID from deleting anything from the directory. To undo, run

chmod -a "USERID:deny:delete_child" DIRECTORY

PS: If you want to have it applied to current and future subfolders beneath DIRECTORY as well, use

"USERID:deny:delete_child,directory_inherit"

You can use Access Control Lists for this. Run

chmod +a "USERID:deny:delete_child" DIRECTORY

to prevent the user USERID from deleting anything from the directory. To undo, run

chmod -a "USERID:deny:delete_child" DIRECTORY

PS: If you want to have it applied to subfolders beneath DIRECTORY as well, use

"USERID:deny:delete_child,directory_inherit"

You can use Access Control Lists for this. Run

chmod +a "USERID:deny:delete_child" DIRECTORY

to prevent the user USERID from deleting anything from the directory. To undo, run

chmod -a "USERID:deny:delete_child" DIRECTORY

PS: If you want to have it applied to current and future subfolders beneath DIRECTORY as well, use

"USERID:deny:delete_child,directory_inherit"
added 131 characters in body
Source Link
nohillside
  • 104.5k
  • 42
  • 222
  • 275

You can use Access Control Lists for this. Run

chmod +a "USERID:deny:delete_child" DIRECTORY

to prevent the user USERID from deleting anything from the directory. To undo, run

chmod -a "USERID:deny:delete_child" DIRECTORY

PS: If you want to have it applied to subfolders beneath DIRECTORY as well, use

"USERID:deny:delete_child,directory_inherit"

You can use Access Control Lists for this. Run

chmod +a "USERID:deny:delete_child" DIRECTORY

to prevent the user USERID from deleting anything from the directory. To undo, run

chmod -a "USERID:deny:delete_child" DIRECTORY

You can use Access Control Lists for this. Run

chmod +a "USERID:deny:delete_child" DIRECTORY

to prevent the user USERID from deleting anything from the directory. To undo, run

chmod -a "USERID:deny:delete_child" DIRECTORY

PS: If you want to have it applied to subfolders beneath DIRECTORY as well, use

"USERID:deny:delete_child,directory_inherit"
Source Link
nohillside
  • 104.5k
  • 42
  • 222
  • 275

You can use Access Control Lists for this. Run

chmod +a "USERID:deny:delete_child" DIRECTORY

to prevent the user USERID from deleting anything from the directory. To undo, run

chmod -a "USERID:deny:delete_child" DIRECTORY