Common folder between two users (same machine)

Gilles Gravier gilles at gravier.org
Tue Mar 24 09:18:33 UTC 2009


Hi!

Chris G wrote:
> On Tue, Mar 24, 2009 at 04:29:11PM +0800, Fajar Priyanto wrote:
>   
>>> Probably simplest is to have both users members of the same "group" (as in
>>> /etc/group)
>>>
>>> Then make the directory (and sub files) owned by that group (chgrp -R
>>> YourGroup /YourSharedFolder)
>>>
>>> Then you want to set that directory's (Set User ID) bit for the group,
>>> recursively (chmod g+s /YouSharedFolder)
>>>
>>> And you should be set...
>>>       
>> Little addition, if you want to prevent user from deleting other
>> user's files, we can use sticky bit:
>> chmod +t /YourSharedFolder
>> This way user can modify other user's files, but not delete them, only
>> the owner can.
>>
>>     
> But there's no *actual* difference between modifying a file and
> deleting it surely.  If I modify a file to zero length then I've
> effectively deleted it.
>
>   
The idea is to prevent mistakes... not voluntary destructive action. One
can always walk up to the server with a big magnet and wave it close to
the disk and you delete everything...

Gilles.

-- 
/*Gilles Gravier*/ *=* *Gilles at Gravier.org* <mailto:Gilles at Gravier.org>
ICQ : *77488526*
<http://www.icq.com/whitepages/about_me.php?Uin=77488526> * || *MSN
Messenger : Gilles at Gravier.org <http://members.msn.com/Gilles@Gravier.org>*
*Skype : ggravier <callto://ggravier>* || *Y! : ggravier
<http://profiles.yahoo.com/ggravier> || AOL : gillesgravier
<aim:goim?screenname=gillesgravier>
PGP Key ID : *0x8DE6D026*
<http://pgp.mit.edu:11371/pks/lookup?search=0x8DE6D026&op=index>
"Living on Earth is expensive, but it does include a free trip around
the sun."

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090324/08e64b00/attachment.html>


More information about the ubuntu-users mailing list