Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My suggestion would be to move it out of your home directory if you can.
1. Make a directory in /usr/local/share. Name it "media" or whatever you like.
2. Copy over your audio and media files to the new directory.
3. Create a new group (I'll use "mediagr" just as an example)
4. Execute the following command (substituting your values): chown -R your_username:mediagr /usr/local/share/media
5. Execute the following command: chmod -R 740 /usr/local/share/media
6. Execute the following command: find /usr/local/share/media -execute chmod 750 {} \;
7. Add each user you want to have access to the files into the mediagr group
Once that's done, then everybody in the mediagr group should be able to read the files in the media directory, but only you will be able to delete any of the files. You might have to be root to execute the above commands (depending on the permissions for /usr/local/share itself)
If you absolutely must share the files from your home directory, then start at step 3, but substitute your directory for /usr/local/share/media of course.
For the chroot thing, I wouldn't mess with that unless you're really familiar with it. Without getting too long and complicated, there are at least two different forms of chroot'ing a user (standard shell chroot, and application chroot - like ftp). The problem is, the directory you chroot the user to becomes their root directory, and they'll need command in that environment to list the directory, listen/view the files, and much more. It's a headache that I would avoid if possible
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.