Chad Perrin schreef:
> Dr.Ruud:

>> TIMTOWTDI. On the shell machines of my provider (FreeBSD) the "id"
>> approach will work, and the "/etc/group" one won't.
>
> I don't think that has anything to do with it being FreeBSD.

That was and is also what I don't think. I only mentioned it because OP
mentioned "This should work on any *nix system".


> I'm typing this from a FreeBSD machine, and it works just fine.

So some security layer is not implemented at your end. I don't know
which is implemented here, there are several ways to do something
similar.


> Of course, if you're going to call out of the Perl script to the id
> utility, you may as well skip the Perl script entirely and just enter
> this at the shell prompt:
>
>   id -Gn username

That depends on what OP needs to do with the result. It could be part of
a larger Perl script that is doing other stuff as well.

-- 
Affijn, Ruud

"Gewoon is een tijger."


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to