LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-11-2004, 08:46 PM   #1
neranjana
Member
 
Registered: Jul 2003
Location: Sri Lanka
Distribution: Mandrake
Posts: 99

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


Hi

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?

Thanks
 
Old 01-11-2004, 10:07 PM   #2
leonscape
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.
 
  


Reply


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

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

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