LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Looking for a way to have common folders like "Pictures" that all users can share (https://www.linuxquestions.org/questions/linux-newbie-8/looking-for-a-way-to-have-common-folders-like-pictures-that-all-users-can-share-669786/)

Charles G 09-13-2008 10:17 PM

Looking for a way to have common folders like "Pictures" that all users can share
 
I'm trying to figure out how I can have media folders that all users on one machine can have access to and add material to.

And I'm wondering if the folder(s) can be someplace other than a user's home folder so that they can back up their home folder without having to backup all that big stuff.

-CG

CRC123 09-13-2008 10:26 PM

You can create a directory off the root partition and then change its permissions to allow everyone to read/write (Do this as root):
Code:

mkdir /public
chmod 777 /public


Charles G 09-13-2008 10:49 PM

Quote:

Originally Posted by CRC123 (Post 3279706)
You can create a directory off the root partition and then change its permissions to allow everyone to read/write (Do this as root):
Code:

mkdir /public
chmod 777 /public


Is there a way I could ensure that the folder gets on the same partition as the home folder? It looks as though mandriva has the home folder on both partitions it created, though only the home folder appears on the larger partition.

CRC123 09-13-2008 10:59 PM

Quote:

Originally Posted by Charles G (Post 3279725)
Is there a way I could ensure that the folder gets on the same partition as the home folder? It looks as though mandriva has the home folder on both partitions it created, though only the home folder appears on the larger partition.

What do you mean by this? A folder can only be on one partition at a time. Mandriva probably created a root ('/') partition and a /home partition. The home partition however, shows up inside the '/' partition because that is where it is mounted. If you want the folder to be on the same partition as /home, then create it under /home:
Code:

mkdir /home/public
chmod 777 /home/public


billymayday 09-13-2008 11:02 PM

You might also want to create links for the users so that the directory "appears" to be in their home directory. Something like

ln -s /home/public /home/username_here/public

Quakeboy02 09-13-2008 11:06 PM

Quote:

Originally Posted by Charles G (Post 3279703)
I'm trying to figure out how I can have media folders that all users on one machine can have access to and add material to.

And I'm wondering if the folder(s) can be someplace other than a user's home folder so that they can back up their home folder without having to backup all that big stuff.

-CG

A common area doesn't have to be in any particular place. "/home" is where you go for "your" stuff, but it's not a limitation on you. In my case (and I've noticed in others) I use "/data" for all my "stuff" (music, movies, kernels, other source code). It's on a separate disk from the root drive, and it makes it much safer for me to do upgrades and trial kernels, because if (when) I bork things really good, it's just a matter of fixing the boot drive; not fixing my data.

Consider setting up a "/data" (or your favorite name) partition or drive, and put your media there. You can give all users "rw" access, or give them their own directory, or even define a new group, set ownership to that group, and add membership in this group to your users.


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