push problem
Vadim Lebedev
vadim at mbdsys.com
Mon Aug 8 17:59:36 CDT 2005
Matt Mackall wrote:
>On Tue, Aug 09, 2005 at 12:02:57AM +0200, Vadim Lebedev wrote:
>
>
>>>Eh? You know you can be a member of multiple groups at a time. There's
>>>a "default" group id and a bunch of supplementary ones.
>>>
>>>
>>>
>>Yes,
>>but at the moment of the file access the kernel verifies the access only
>>for your effective group (and user) id...
>>To change effective user id you have to use newgrp and sg commands or
>>setgid syscall....
>>Actually the kernel is completely unaware of the fact that you are a
>>member of multiple groups...
>>only nwgrp or sg commands are accessing the /etc/group file to verify
>>that you can execute newgrp or sg commands with given argument .
>>
>>
>
>I'm afraid you're mistaken.
>
>You can in fact be a member of any number of groups, though older
>systems have a limit of 32.
>
>In Linux, see the call to in_group_p in generic_permission in
>fs/namei.c to convince yourself.
>
>
>
Yes, indeed, i was not aware of the setgroups(2) syscall....
Vadim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.selenic.com/pipermail/mercurial/attachments/20050809/ff84487b/attachment.html
More information about the Mercurial
mailing list