05-26-2009
1,
0
Join Date: May 2009
Last Activity: 26 May 2009, 8:04 AM EDT
Posts: 1
Thanks Given: 0
Thanked 0 Times in 0 Posts
Monitor file changed / created events on big FS
Hi all,
The configuration:
We are useing a HP-UX Server with vxfs File System. The files on this server have normally a umask of 022 (owned by a administrative account) users who have write access to certain files get custom ACL entries that add these rights for the specific user.
Now a Samba server is running to make the files accessible from within Windows Clients.
The problem:
It seams that when a user saves a file from the Windows Client through Samba the file looses the special ACL rights (maybee it's recreated) so that the user can not save again (File is owned by an other user)
Second problem is that a new file has to get the correct ACL's. For now we have a cron job that does ACL fixing every 2 hours for that.
The question:
Is it somehoe possible to monitor the file system for new files / changed files so that everytime a file is changed / created the ACL's can directly be fixed?
Unfortunately we have >1 TB of data in millions of files in thousands of directories so that a find or simillar would consume lots of resources and need multiple minutes per run.
An other idea would be to create a file system overlay that would be mounted over the real fs and triggers the events. Does anybody has an example for something like this on HP-UX or any other idea on how to do this? I know that on Linux and also Windows theer are API methods available for these tasks, so it should be on HP-UX too i hope.
Thanks for any sugestions!