Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
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.
I want to create a folder for music that any user can access. Would I create a /home/shared directory and if so how would I set permissions for all users or would the folder be better created in /usr/share?
A lot depends on your future plans... locally (on the same host) shared stuff goes in /usr/share, but if you keep /home on it's own partition, then you may prefer to create a /home/share/music directory (so it enjoys the same protection).
If the music is to be shared to a network, then it is more usual to put the shared directory in the home directory of the user who administers the share. If that is you, then ~/share is easier to access. But, again, this can depend on your plans for the future.
Personally, I have kept shared files in /home/share so I can reinstall, or a user can vanish, without me worrying about the data. Without modifying existing backup and upgrade policies.
Directory permissions just need to be rwxrxrx with owner set to whoever will administer the share on the local host.
Thanks Simon. /home is on its own partition so I think I'll go for the /home/share/music option. That way if I have to re-install the system I won't need to touch what may in time become quite a big file.
Since you use Debian, I would install vsftpd. The installation gives you a complete, working, and quite secure, anonymous ftp server. Even if you don't want to use ftp as the sharing program, studying the way it is designed to keep users chrooted into the "share" directory would be valuable. I would definitely set up a separate user specifically for that purpose, and share from his /home directory, rather than your own.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.