LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-13-2008, 10:17 PM   #1
Charles G
LQ Newbie
 
Registered: Nov 2005
Posts: 16

Rep: Reputation: 0
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
 
Old 09-13-2008, 10:26 PM   #2
CRC123
Member
 
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 32
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
 
Old 09-13-2008, 10:49 PM   #3
Charles G
LQ Newbie
 
Registered: Nov 2005
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by CRC123 View Post
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.
 
Old 09-13-2008, 10:59 PM   #4
CRC123
Member
 
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 32
Quote:
Originally Posted by Charles G View Post
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
 
Old 09-13-2008, 11:02 PM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
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
 
Old 09-13-2008, 11:06 PM   #6
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by Charles G View Post
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.
 
  


Reply

Tags
sharing



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
How might I restore kmail folders/mail/settings from a "badly" saved "home"? deh6 Linux - Software 5 03-08-2008 09:25 PM
How do you create shortcuts to "folders" and "binaries" in GNOME? ebenh Linux - Desktop 5 01-21-2008 05:28 AM
Displaying "Subscribed Threads" -> new folder "All Folders" JZL240I-U LQ Suggestions & Feedback 5 06-15-2007 06:36 AM
Common problems explained: "kernel panic - not syncing", "unable to mount..." sundialsvcs Linux - Newbie 2 03-01-2006 12:17 PM
"adduser" not adding users to default group "users" PunkPT Slackware 2 09-23-2004 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:03 PM.

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