Unless you use something like bindfs you cannot inherit ownership since the setuid bit on a directory has no meaning in Linux - only in BSD.
Originally Posted by mbnoimi
Through a combination of umask and the setgid bit you can cause new child files and folders to inherit the group ID and group permissions of the parent.
The only problem with setgid in this topic and something that still baffles me is that the parent folder whose permissions you want to inherit always starts off the same way:
Owner = mbnoimi
Owner permissions = read / write / execute
Group permissions = none
Other permissions = none
In octal mode these are permissions of 700. Why do you want all child files and folders to have permissions of 700?
You want just the opposite to happen. Maybe if I restate bab1's posts a different way it will help:
** Change ownership of the parent folder to include a new group ( I'm going to use plugdev since it already exists ):
** Change permissions to 770 instead of 700 and add the setgid bit to the parent folder:
sudo chown mbnoimi:plugdev /parent-folder
** Add all the users you want to access that folder to the plugdev group:
sudo chmod 2770 /parent-folder
** Since you are using Kubuntu 12.10 the umask is already set at 002 so no change is required to that.
sudo gpasswd -a user-name plugdev
Any new file copied to or created in but not moved to the parent folder will have group = plugdev and permissions of 664. All members of the plugdev group will be able to read and write to that file.