https://github.com/froggs/system-passwd
Easily search for system users on Unix-based systems
https://github.com/froggs/system-passwd
Last synced: 5 months ago
JSON representation
Easily search for system users on Unix-based systems
- Host: GitHub
- URL: https://github.com/froggs/system-passwd
- Owner: FROGGS
- License: other
- Created: 2015-03-28T15:23:04.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-28T15:25:43.000Z (about 11 years ago)
- Last Synced: 2025-06-15T06:34:32.780Z (about 1 year ago)
- Language: Perl6
- Homepage:
- Size: 99.6 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.pod
- License: LICENSE
Awesome Lists containing this project
README
=head2 NAME
System::Passwd - easily search for system users
=head2 DESCRIPTION
L is a Perl 6 distribution for searching the C file. It provides subroutines to search for a System::Passwd::User user by uid, username or full name.
=head2 SYNOPSIS
use System::Passwd;
my $root_user = get_user_by_uid(0);
say $root_user.username;
say $root_user.uid;
say $root_user.gid;
say $root_user.fullname;
say $root_user.login_shell;
say $root_user.home_dir;
# can search for users other methods
my $user = get_user_by_username('sillymoose');
# or:
my $user = get_user_by_fullname('David Farrell');
=head2 LICENSE
FreeBSD - see LICENSE
=head2 AUTHOR
David Farrell
=cut