Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-11-2004, 09:46 PM   #1
Registered: Jul 2003
Location: Sri Lanka
Distribution: Mandrake
Posts: 99

Rep: Reputation: 15
How to create Shared Documents Directory like in Windows XP?


My problem is that my Linux machine (Mandrake 9.1) is been used by my entire family. When somebody wants to let somebody else use a file that person has to go and change the file access rights. It's OK for me, but my parents find it too complicated. I want to create a directory which lets anybody open a any document inside it like the Shared Documents folder in Windows XP. Is there any simple way to create a directory and specify the default behavior so that any document inside it could be accessed by anybody without explicitely changing the access rights on individual files?

Old 01-11-2004, 11:07 PM   #2
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
Do these things as root.

Create a directory on your /home call it share. ( mkdir /home/share )

Now create a group call it family. ( addgroup family )

Change the share directories group to family. ( chgrp family share )

change the permissions on the directory so every family can read/write to it. ( chmod g+rw /home/share )

If you want executables from their as well add x to the options. Now everyone can read or write to the directory as if it was their own. The files when copied there will automatically become members of the family group. Though they will keep their current permissions. ( so if their set for no group reading then the group can't read them. which is rare for files you create. ) Changing them to be writeable is a bit more work.

I have this setup, so the family can share files, but usually can't delete them. very handy for my mp3 and ogg files.


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
mounting windows shared directory on to a linux box srinivasarajui Linux - Networking 2 09-28-2005 06:56 AM
Wich encoding for shared documents? joaquin_win Linux - General 4 09-02-2005 03:57 PM
Shared Documents with access for Windows XP and Linux elmosgot Linux - Software 3 04-17-2005 11:45 AM
Automount my windows shared directory fails cmf Fedora 0 06-01-2004 05:44 PM
Connecting to Shared Windows Directory NiallC Linux - Networking 3 08-10-2003 06:08 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:41 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