lkml.org 
[lkml]   [2004]   [Apr]   [8]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
/
From"Miquel van Smoorenburg" <>
SubjectRe: setgid - its current use
DateThu, 8 Apr 2004 11:49:20 +0000 (UTC)
In article <Pine.LNX.4.58.0404072304500.14350@d10systems.homelinux.com>,
Dhruv Gami  <gami@d10systems.com> wrote:
>On Thu, 8 Apr 2004, Denis Vlasenko wrote:
>
>> On Thursday 08 April 2004 04:46, Dhruv Gami wrote:
>> > I'd like to know the possibility of using setgid for users to switch their
>> > groups and work as a member of a particular group. Essentially, if i want
>> > one user, who belongs to groups X, Y and Z to create a file as a member of
>> > group Y while he's logged on as a member of group X, would it be possible
>> > through setgid() ?
>> 
>> it is possible through chmod
>
>but that would be an explicit way of doing it, right ? I'm looking for 
>doing this via some system calls or something transparent to the user. At 
>most I'd like to query the user for the group as which he wants to work. 
>Which would essentially be a question I ask at login or beginning of a 
>session.

"man newgrp(1)".

Mike.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:02    [W:0.377 / U:0.470 seconds]
©2003-2008 Jasper Spaans