Subject: Re: Why need +s chmod on files and directories?
From: Mike Fedyk (mfedyk@matchmail.com)
Date: Tue Oct 31 2000 - 22:22:35 EST
Alex Yu wrote:
>
> > Essentially because MacOS files don't have permissions. Directories
> > do. So the g+s option makes sure that the permissions assigned
>
> Hmm, on my server, I have Windows users using ftp, and Mac users using
> AppleShare. Do I have to set g+s on files that ftp creates?
>
> Alex
More specifically, g+s, which is SGID or Set Group ID. This makes files created
in any directory that is marked SGID to have the same group as the directory.
Many distributions (including debian, which I use) create a group for each user,
and that user is the only member of that group.
Here's what happens:
No SGID:
User1 creates file1 in dir1 that is not SGID. file1 is owned by user1 and it's
group is user1 also.
What if user2 wants to edit file1? user2 can't, unless everyone (777 or
-rwxrwxrwx) can write to file1. You probably don't want that.
With SGID:
user3 creates a file3 in dir2 that is SGID. Directory is in group grp3. file3
is owned by user3 and group grp3.
Now any member of grp3 can edit file3. This is probably what you want.
--Mike Fedyk "They that can give up essential liberty Information Systems to obtain a little temporary safety Match Mail Productions Inc. deserve neither liberty nor safety." mfedyk@matchmail.com Ben Franklin
This archive was generated by hypermail 2b28 : Wed Jan 17 2001 - 14:32:31 EST