Delete New Folder using inotify tools
by barani_pd from LinuxQuestions.org on (#5SRRC)
Hi,
I am using Samba server on CentOS and sharing that folders for Windows users. The problem is the users keep creating folders with in the shares. I told them not to do so but they won't restrain from doing so. Can someone help with a linux script using inotify tools to watch a folder and any new folder, may be created or copied in, and delete them immediately.
Thanking you all in advance .
I am using Samba server on CentOS and sharing that folders for Windows users. The problem is the users keep creating folders with in the shares. I told them not to do so but they won't restrain from doing so. Can someone help with a linux script using inotify tools to watch a folder and any new folder, may be created or copied in, and delete them immediately.
Thanking you all in advance .