You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/usr/bin/perl
|
|
|
|
use warnings;
|
|
use strict;
|
|
|
|
use User::grent;
|
|
|
|
while (my $group = getgrent) {
|
|
print 'Name : ', $group->name, "\n";
|
|
print 'Password: ', $group->passwd, "\n";
|
|
print 'Group ID: ', $group->gid, "\n";
|
|
print 'Members : ', join(', ', @{$group->members}), "\n\n";
|
|
}
|