LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 07-11-2007, 05:38 PM   #1
mikieboy
Member
 
Registered: Apr 2004
Location: Warrington, Cheshire, UK
Distribution: Linux Mint 19.1 Xfce
Posts: 555

Rep: Reputation: 33
Where to put shared music folder


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?
 
Old 07-11-2007, 06:33 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
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.
 
Old 07-12-2007, 04:08 AM   #3
mikieboy
Member
 
Registered: Apr 2004
Location: Warrington, Cheshire, UK
Distribution: Linux Mint 19.1 Xfce
Posts: 555

Original Poster
Rep: Reputation: 33
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.

Cheers,

Mikie
 
Old 07-12-2007, 08:13 AM   #4
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
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.

Last edited by rickh; 07-12-2007 at 08:14 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I can not open the user folder in home and write in a shared folder jorge_ivan Linux - General 8 08-02-2006 11:28 AM
Where do you put music and other files grim57 Linux - Newbie 4 03-13-2006 08:21 PM
how can i move this folder of music from /root/Shared to /home/coffee/Shared ? thx mr_coffee Linux - Newbie 9 01-23-2006 06:50 AM
Cant add folder into my shared folder? amer_58 Linux - Newbie 2 04-03-2005 11:35 AM
Where to put shared directory? mikieboy Slackware 11 02-12-2005 03:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 01:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration