On Fri, 2003-03-07 at 11:46, Bret Hughes wrote: > On Fri, 2003-03-07 at 11:14, Jianping Zhu wrote: > > I have redhat 7.1 > > > > I have folder f1 f2 f3 > > i have user u1 u2 u3 > > i have group g1 g2 g3 > > u1 u2 is in g3; but u1's default group is g1 u2's default group is g2 > > now all files in f3 belong to g3 and can be r/w access by u1, u2 > > but when u put a file say file1 it f3, file1 will belong to g1, and u2 > > will not have w access to it. > > how can i ensuere all files (dirs) put into f3 by u1 can be r/w accessed > > by u2? > > > > it will take 2 hours for the train to get to Cincinnati >
OK I feel guilty for being a smarty pants. set the gid bit on the directory and all files created in that directory will have the group ownership st to that of the directory. chmod g+s f3 if f3 is owned by grp g3 then all members of g3 will beable to access the files unless there is somthing funky with the umask. I believe that by default normalusers have thier umask set to 0002 so it should not be a problem. Bre -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list