Creating a File system with required permissions for all DIR's created in

Hello All,

I am application admin. I need to clear all the temporary files cleared by the applications. I need help/suggestion that is there any way to create a file system such that every Dir created in by any user will have 775 permissions. So, that i can simply clear the temporary file which helps our application to run smoothly.

Why do you want this?
Which is your system?
Clearly what is your goal?

I need to create a file system /tmp such that every directory creted under /tmp must show 775 as permissions when we see ls -la. So that every person of the group will have read write and execute access to the whole file system.
/tmp is used for storing the temporary files. SO if it got filled anyone can clear and work easily............

Thanks,
Firestar

Usually temporary files do not need to be executable... why don't you just remove the sticky bit from the default /tmp???

Then you create another mount point /tmpmyfs on another new ext3 partion and you must mount with 'rw' and 'dmask=002'

like this ...

mount /dev/sda4 /tmpmyfs -t ext3 -o auto,dmask=002

I believe dmask is only available as a mount option for vfat or ntfs, not ext3

If you had set an umask of 022 for all users, nothing more would be needed...