On Mon, Feb 2, 2009 at 12:23 PM, Jim McQuillan <[email protected]> wrote:
>
>
> David Burgess wrote:
>> On Mon, Feb 2, 2009 at 10:38 AM, Joseph Bishay <[email protected]> 
>> wrote:
>>> Hello,
>>>
>>> On Mon, Feb 2, 2009 at 11:00 AM, Scott Balneaves
>>> <[email protected]> wrote:
>>>> Are all your students in the same primary group?  Usually this is what 
>>>> causes
>>>> this.  Typically, in modern Linuxes, each user should have their own 
>>>> primary
>>>> group the same as their userid.
>>>>
>>>> Scott
>>> I was having this problem also and never realized that this was the
>>> problem!  If that's the case that each person should be their own
>>> group that is the same as their userid, is the no benefit to dividing
>>> up people into groups like "students", "teachers", "admin", etc --
>>> that was the way I thought it was suppose to be done?
>>>
>>> Thanks,
>>> Joseph
>>
>> A user can be a member of other groups besides their primary group. If
>> my username is 'david' and my primary group is 'david', I can still be
>> a member of groups audio, fuse, cdrom, adm, teacher, student, etc.
>
> While it's true that a user can be a member of multiple groups, there's
> still some special significance to the initial group for each user.
>
> When a user creates a file, the user/group of the file is set to that of
> the user and whatever his initial group is.
>
> By having each user have their own unique group, it makes it more tricky
> to share files between users.  If I create a file in a common directory,
> I'd like other members of my group to be able to update that file.

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.

Of course if you want tina to be able to edit joe's files only when
they appear in a specific folder, then it's inevitable that you're
going to have to do some fiddling with the ownership of individual
files and folders. In other words, it doesn't matter if joe's primary
group is tina or student, tina, if she is a member of that group, will
be able to edit any file created by joe until he changes ownership or
permission of that file.

So one way or another, you're going to have to come up with a system
to change ownership or permissions of a file/folder if you want users
to have access to some each other's stuff but not all of it. Either
you train your users in this regard or you make a cron job that
changes the permission of everything in a designated foler, either
changing ownership to a common group, or granting rw access to members
of group 'student', for example.

db

------------------------------------------------------------------------------
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