LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-28-2009, 10:26 AM   #1
Gangrif
Member
 
Registered: Feb 2004
Distribution: Fedora 19
Posts: 73

Rep: Reputation: 15
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!
 
Old 07-28-2009, 03:15 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.

Last edited by jschiwal; 07-28-2009 at 03:22 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS: folder permission inheritance Swakoo Linux - General 5 06-25-2007 04:29 AM
creating a filesystem for NFS ashlesha Linux - Software 0 10-31-2006 01:26 PM
3 issues: Making swap, fixing partitions, changing ownership of mounted filesystem. Dunedain Linux - Newbie 2 01-27-2004 03:52 PM
Changing ownership of mounted filesystem jhansman Red Hat 4 09-11-2003 12:38 AM
Access attributes & ownership on FAT filesystem correro Linux - General 2 03-18-2003 08:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration