How to prevent directory from being moved.
by mfoley from LinuxQuestions.org on (#5GMTE)
Our office has a shared CIFS mount. A couple of the directories on that volume are:
Code:drwxrwxr-x 5098 ohprso ohprs 188416 2021-04-15 08:15 Pension\ Files/
drwxrwsr-x 15 ohprso ohprs 4096 2021-02-18 13:14 Staff/Today, one of the users accidentally moved the "Pension Files" directory to a sub-directory under "Staff", allegedly because the dog bumped the table when the user was attempting to open this folder. The rest of the office was unable to find "Pension Files" until the perpetrator realized the problem and moved it back.
All users have RWX access to this directory and its sub-directories and files, as should be the case. Is there a way to prevent the "Pension Files" directory itself from being moved?


Code:drwxrwxr-x 5098 ohprso ohprs 188416 2021-04-15 08:15 Pension\ Files/
drwxrwsr-x 15 ohprso ohprs 4096 2021-02-18 13:14 Staff/Today, one of the users accidentally moved the "Pension Files" directory to a sub-directory under "Staff", allegedly because the dog bumped the table when the user was attempting to open this folder. The rest of the office was unable to find "Pension Files" until the perpetrator realized the problem and moved it back.
All users have RWX access to this directory and its sub-directories and files, as should be the case. Is there a way to prevent the "Pension Files" directory itself from being moved?