If I have photos, mp3s, books and other miscellaneous stuff that I want all users to able to access from a common directory, where on a Linux file system should I put that directory? In /usr/share, or just in /usr, or create a new top-level directory instead?
Linux – Where on a Linux file system should someone put media intended to be accessible by all user accounts
file managementlinux
Best Answer
I usually put this in
/home/media
, I create amedia
unix group that owns it with a setgid bit.As root, or using sudo:
Then I put each user that needs to access these data in the
media
group.You could also use ACLs to manage each user's right for the directory.
You could also use
/srv/media
if you prefer, but I like home for shared documents. Anything in/usr
is to be avoided for this unless you're talking about static files.