public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Getting groups you belong to in perl
@ 2014-03-14 10:25 PANEL Vincent (CIS/SIN)
  2014-03-14 11:37 ` Andrey Repin
  0 siblings, 1 reply; 7+ messages in thread
From: PANEL Vincent (CIS/SIN) @ 2014-03-14 10:25 UTC (permalink / raw)
  To: cygwin

Hello,

Don't know if this list is more appropriate than the Perl one but my question is actually about porting a Perl script to Cygwin. I need to check if the current user running the script belongs to a pre-defined group.

Under *nix, I get the list of users belonging to the group and see if the current user is in this list. Cygwin doesn't allow this way of working. I found out by reading the thread "Why mkgroup does not list group members?" on this mailing list (1 message on Mon, 13 May 2013 20:29:52, for instance).

I would like to use perl commands without launching external commands, if possible. The way I've found until now is by using the output of the "id" command but I was wondering if there was another way to do it. How is "id" command working by the way ?

Regards,

________________________________

***** Disclaimer *****
http://www.belgacom.be/maildisclaimer

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-03-21  9:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-14 10:25 Getting groups you belong to in perl PANEL Vincent (CIS/SIN)
2014-03-14 11:37 ` Andrey Repin
2014-03-14 13:05   ` PANEL Vincent (CIS/SIN)
2014-03-14 14:00     ` Andrey Repin
2014-03-14 16:50       ` Corinna Vinschen
2014-03-14 18:45         ` Andrey Repin
2014-03-21 11:13           ` Linda Walsh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).