Re: Best practice /etc/fstab mount
The proper permissions should be set in each partitions root directory, not on the mount points (your #1).
You are right to say ext4 does not support fstab-derived UIDs. It's all done at the fs level.
Ubuntu's umask is 0002 so all apps should create 775 files with the current user:group as owner, unless the app is misbehaved.
Your best bet would be to set the SGID bit for your directories in your individual partitions. It will force all new files to acquire the group that owns the directory.
You could also go with a more user-centric approach with ACLs (access control lists).
sudo chmod g+s -R /mnt/<name>
Set default directory ACLs and also add them to existing files, independent of ownership.
sudo setfacl -R -d -m <user>:rwX /mnt/<name>
sudo setfacl -R -m <user>:rwX /mnt/<name>
Last edited by LewisTM; November 6th, 2012 at 08:31 PM.
husband@wife$ make sandwich
husband@wife$ sudo make sandwich