6
3
I have a folder /home/userName/Public/Media
in which I store all media on the machine; this folder is intended to be accessible by all other users of the machine -if only to stop them having to independently download/rip the same media files.
Is there any way in which I can change the permissions to:
owner: userName /* my own user */
Access: read and write
group: users
Access: read only /* I'm not entirely sure I trust all my users enough to give them powers of delete */
Others
Access: read only
Ideally I'd like others to be able to add their own media, but for the permissions for any media/files/directories added by myself to default to those listed above. Permissions for files my users add I'd like to default to those above, with the exception that the users retain ownership.
I'm assuming that inotify and umask could be used; but -and I can only apologise for this- I have no idea how to use them to effect a solution.
Thanks for any help you're able to provide. One day, I hope to be able to use Ubuntu without bewilderment... =)
I've upvoted, and accepted, because that is an awesome answer, and a great explanation (and it does what I wanted), but I'm curious as to your opinion on whether or not there should be a
media
user? In that all shared media would be stored under a public/public-ish user-account, so's my ~/ directory remains private? – David says reinstate Monica – 2009-10-01T23:01:36.657There are a bunch of ways you can do it; I wouldn't want people wandering around in my ~, certainly. But you could just create a folder, and chown it to a common group or something. No need to make a whole user...Just another set of passwords to remember. – Satanicpuppy – 2009-10-02T13:50:41.360