Supplementary groups

Ask a Question related to Ruby, Design and Development.

  1. #1

    Default Supplementary groups

    Is there a function for setting supllementary groups? I don't see a method
    documented in Process.

    I want the equivalent of man (2) setgroups:

    - Function: int setgroups (size_t COUNT, gid_t *GROUPS)
    This function sets the process's supplementary group IDs. It can
    only be called from privileged processes. The COUNT argument
    specifies the number of group IDs in the array GROUPS.


    Andrew Walrond Guest

  2. Similar Questions and Discussions

    1. how to browse in sub groups
      I've to assign a texture to a sub element (3dworld/badge_shockwave/texture). how to get that shader? I tried with: ...
    2. I'm still confused by the difference between Global Groups and Domain Local Groups
      Experts, I'm still confused by the difference between Global Groups and Domain Local Groups. I mean, they seem to me to accomplish the very same...
    3. Getting AD Groups
      Hi Gurus, I seek you expert advice on the following scenario:- Environment: Windows 2003, IIS6, Windows Integrated Authentication, .Net...
    4. Specify more than 1 supplementary group for a user ??
      Whenever I do: usermod -G groupname username ..... any existing supplementary group of username, as shown from /etc/group, gets removed and...
    5. Adding user with supplementary groups within jumpstart installation
      Hello, When I am jumpstarting my servers (Solaris 9) I am adding system administrators account at the end of the finish script, for that I use...
  3. #2

    Default Re: Supplementary groups

    Andrew Walrond wrote:
    > Is there a function for setting supllementary groups? I don't see a method
    > documented in Process.
    >
    > I want the equivalent of man (2) setgroups:
    >
    > - Function: int setgroups (size_t COUNT, gid_t *GROUPS)
    > This function sets the process's supplementary group IDs. It can
    > only be called from privileged processes. The COUNT argument
    > specifies the number of group IDs in the array GROUPS.
    Don't believe it was there for Ruby 1.6, but in Ruby 1.8 it's just:

    Process.groups = [gid1, gid2, ...]

    where the gidx values are either group numbers or names.

    Hope this helps,

    Lyle

    Lyle Johnson Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139