Common folder between two users (same machine)
Chris G
cl at isbd.net
Tue Mar 24 08:56:49 UTC 2009
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.
--
Chris Green
More information about the ubuntu-users
mailing list