Running Ubuntu 10.04 LTS and Gnome, I have a Shared folder (/home/SHARE) that I want my wife and I to have read/write permissions to while the kids have read-only access. We both are part of the same group ("Parents") which, obviously, the kids are not.
The problem is when my wife saves a file in some level of this directory it saves it with her as the owner and her default group as the group. Most often we are placing pictures in albums under /home/SHARE/Pictures/ with digiKam from our digital camera.
I don't have write access to these files (and vice verse, when I put a file into any subdirectory, she doesn't have write access) until I run
So how do I get it so when files are saved here they automatically are saved with the specified group and with a chmod of 775 (owner/group has full access, others have read-only)?
sudo chown <username>:Parents -R /home/SHARE
# makes all files have "Parents" as their group
sudo chmod 775 -R /home/SHARE
# makes all files have read/write access for the owner and members of the "Parents" group,
# all else gets only read-only access