LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   NFS filesystem ownership inheritance. (https://www.linuxquestions.org/questions/linux-security-4/nfs-filesystem-ownership-inheritance-743415/)

Gangrif 07-28-2009 10:26 AM

NFS filesystem ownership inheritance.
 
I have an NFS share, used by many users I need files created by these users to inherit ownership from their parent directory.

For example.
If ownership on /mnt/nfs is set to user:group
if bob puts a file in /mnt/nfs/bob/whatever
I need bob's file to automatically end up with ownership of user:group, rather than bob:bob.

Any way to accomplish this?

Thanks!

jschiwal 07-28-2009 03:15 PM

Linux doesn't allow suid directories. Guid directories will change the group ownership. You can add a default ACL for a directory. Otherwise, AFAIK, you would need to modify the ownership with a program or service. Perhaps a cronjob that uses find to locate files not matching your ownership requirements or a service that uses inotify to monitor filesystems.


All times are GMT -5. The time now is 12:35 PM.