upasaka
6-1-05, 10:43 AM
Hi. Brand spanking new user (from Australia) - first let me say I'm well impressed with powweb; I cant believe how much I'm getting for my money. :D
And now for my question. Apologies because I know chmod comes up a lot, but I've hunted and just cant find the complete answer I'm after. Which is, precisely who is represented by the user and group components of file permissions in my package; ie, the UID and GID?
Just let me say that I 100% understand chmod permissions and the role of users and groups in Unix. In looking through the forums I think I've also found that the user for all accounts within my 'package' - including all secondary/sub ftp users I create - is the primary user running my web service. So that UID is always the same, no matter which one of my accounts actually logs in.
But who is the group, the GID? Is this shared by other users completely unrelated to my 'package'? Do I have any control over that?
The reason I ask is this: I cannot see any meaningful use for the first 2 file permission ordinals in chmod. That is, as every user account is always the same user, and every user is always a member of the same group, surely it makes no difference whatsoever what I put in the group permission??
Am I wrong? And either way, is there any way I can restrict my sub ftp users so that they cannot modify each others files? (Eg, they all share a root of ~/filez but each have their own sub directory of <user> under that - I only want <user1> to be able to modify files under ~/filez/user1 but am happy for everyone to have r-x perms.)
Thanks very much!
And now for my question. Apologies because I know chmod comes up a lot, but I've hunted and just cant find the complete answer I'm after. Which is, precisely who is represented by the user and group components of file permissions in my package; ie, the UID and GID?
Just let me say that I 100% understand chmod permissions and the role of users and groups in Unix. In looking through the forums I think I've also found that the user for all accounts within my 'package' - including all secondary/sub ftp users I create - is the primary user running my web service. So that UID is always the same, no matter which one of my accounts actually logs in.
But who is the group, the GID? Is this shared by other users completely unrelated to my 'package'? Do I have any control over that?
The reason I ask is this: I cannot see any meaningful use for the first 2 file permission ordinals in chmod. That is, as every user account is always the same user, and every user is always a member of the same group, surely it makes no difference whatsoever what I put in the group permission??
Am I wrong? And either way, is there any way I can restrict my sub ftp users so that they cannot modify each others files? (Eg, they all share a root of ~/filez but each have their own sub directory of <user> under that - I only want <user1> to be able to modify files under ~/filez/user1 but am happy for everyone to have r-x perms.)
Thanks very much!