Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 12-17-2006, 02:28 PM   #1
Registered: Jul 2006
Location: New Zealand
Distribution: Fedora 17 64bit (Desktop) Fedora 15 (Laptop)
Posts: 98

Rep: Reputation: 17
Cool How to share a home folder to everyone?

Hi all

What do I have to do in FC5 to share a folder under each persons home folder to anyone else for read and write.

For instance i have 4 users who all have their own photo, music, video, download folders.

Like below:


I want to make these two folders and everything in them accessiable to all other users


So maybe do I do chmod 577 /home/gimmee/music

or something like that.

Not to sure how the recursive -r works with this command

Everyone likes having their own photos and music separate but evry now and then want to browse other music and photos from other /home users to use for whatever reason.

Look forward to any help you can have me with this query.

Cheers Gimmee
Old 12-18-2006, 02:41 AM   #2
Senior Member
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
I am a little confused because you mention two different users (gimmee and katrina) -- or at least two different directories in the /home directory -- and I am not sure what the relation is between them, but I will plow on fearlessly anyway ...

If you want everybody to be able to read /home/gimmee/music, then you are going to have to allow everybody to read /home/gimmee. That means everybody can see the directory entries in gimmee, and if you are not careful with file permissions they may be able to read or even write to files/subdirectories in that directory. You can still do this if you are careful and don't mind other people viewing your directory entries, but personally I would find it far from satisfactory.

You might want to consider creating another directory under home called (for example) /home/share with each user getting a subdirectory that is writable by them and readable by everybody else. And then the regular home directories will stay private. You could then have directories like:


and so on.

Individual users could then create symbolic links such that, for example, user gimmee could access /home/share/gimmee/music just as music or shared_music, or some such from his/her home directory. If desired.

On your chmod command, I suspect you meant 755 instead of 577.
755 will give the user read + write access to that directory and read access to all groups and everybody else.

Using the -r option with chmod operating on a directory, will cause that directory and everything in it to be affected. It will continue to do the same on all subdirectories, and so on. The trouble is that the execute bit has different meanings for directories and files. You usually want to set it on directories, but only have it set on files that are executable.

If (for example) you wish to allow everybody to read everything in /home/share/katrina and its subdirectories, but only user katrina to be able to write to it, I would suggest the following commands (consult the respective man pages to find out what these commands do), executed as root:

mkdir /home/share
chmod 755 /home/share
mkdir /home/share/katrina
chown katrina: /home/share/katrina
chmod 775 /home/share/katrina
Katrina (or root) could then:

mv /home/katrina/photos /home/share/katrina
mv /home/katrina/music /home/share/katrina
chmod -r go+r /home/share/katrina
find /home/share/katrina -type d -exec chmod go+rx {} \;
cd /home/katrina
ln -s /home/share/katrina/photos shared_photos
ln -s /home/share/katrina/music shared_music
The last two statements create symlinks to the shared directories called shared_photos and shared_music in the user's home directory. If you just want to call them photos and music, you can just leave off the last term. Or adjust it to whatever you like.

EDIT: I made a mistake. You can give a directory execute (x) w/o read (r) permission to allow access to directories under, and files in that directory w/o allowing the directory itselft (its listing) to be read. So that chmod o=x /home/katrina would still permit everybody to get to /home/katrina/photos (if photos had the right permissions) w/o being able to look at the directory listing of /home/katrina. But TMK, this would work only with the command line unless you set up symlinks to everybody's photos & music directories in each user's home directory. And you still have the potential to expose more than you wish if you aren't careful with permissions. So, IMHO, you are still better off going with the /home/share directory idea.

Last edited by blackhole54; 12-18-2006 at 05:13 AM.
Old 12-19-2006, 12:18 AM   #3
Registered: Jul 2006
Location: New Zealand
Distribution: Fedora 17 64bit (Desktop) Fedora 15 (Laptop)
Posts: 98

Original Poster
Rep: Reputation: 17
Thanks for that explanation blackhole54. Exactly the helpful reply I was looking for. I was wondering how to let other users view and acess a folder in gimmee (or any other user for that matter) without seeing all the directories in that users folder. The shared folders under /home is perfect especially with the sym link.

Note: Tried it last night and set up like you said. I had four users wanting to share photos, music, and whateverelse. The shared folders under /home with sym links worked perfectly and everyone is now happy.

Thanks again


Last edited by gimmee; 12-19-2006 at 12:42 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Home folder icon does not open home folder CiscoGeek Linux - Newbie 3 12-18-2006 07:00 AM
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
Folder Max Size and Limiting SSH access to home folder. Mefistofeles Linux - General 4 11-26-2005 02:09 PM
Default Share / Home folder problem Seventh Linux - Newbie 3 06-29-2005 03:05 PM
Samba - Share definition on a folder under a home directory craig467 Linux - Software 9 06-07-2005 03:29 AM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 04:17 AM.

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