Loading ...
Sorry, an error occurred while loading the content.
 

Re: [PBML] Perl question Getting User Groups

Expand Messages
  • Jeff Pinyan
    On 9/22/07, sgmayo@mail.bloomfield.k12.mo.us ... Oh, sorry. I thought the output was on two lines, but it turns out that s an artifact of the email message
    Message 1 of 10 , Sep 22, 2007
      On 9/22/07, sgmayo@...
      <sgmayo@...> wrote:
      > Jeff Pinyan wrote:
      > > chomp( ($uid_gid, $groups) = `id $username` );
      >
      > I did not realize that. Actually that command pulls everything into
      > $uid_gid though. It would be nicer if I could just pull out group
      > numbers, but I can parse through that fine I believe. I'll see which is
      > easier. To parse that line or to just read in all the groups and see if
      > the user is in it.

      Oh, sorry. I thought the output was on two lines, but it turns out
      that's an artifact of the email message itself (a really long line
      that had to be broken).

      --
      [Mary said,] "Do whatever he tells you." ~ John 2:5
    Your message has been successfully submitted and would be delivered to recipients shortly.