On Mon, Feb 02, 2009 at 12:54:52PM -0700, David Burgess wrote:

> I'm sure there are other solutions, but mine has been to change the
> default umask to something like 007 and then if I want user tina to be
> able to edit files from joe, I just adduser tina joe, then tina can
> edit joe's files.

The usual way to handle shared directories, within Unix, anyway, is by a
combination of umask, and the setgid bit on the directory:

mkdir /home/shared
chgrp users /home/shared
chmod g+w /home/shared
chmod g+s /home/shared

Now, you'll have a directory which is group-owned by "users".  All users in the
group "users" will be able to create content here, and *regardless* of their
primary group ownership, any file they create within the "shared" folder, will
be group owned by "user".

This, coupled with a default umask of 007 makes it easy to create shared
folders that just "do the right thing".

Hope this helps somebody.

Scott

-- 
Scott L. Balneaves | I must have a prodigious quantity of mind; it takes me
Systems Department | as much as a week sometimes to make it up.
Legal Aid Manitoba |    -- Mark Twain, "The Innocents Abroad"

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to