1AnyData::Format::PasswdU(s3e)r Contributed Perl DocumentaAtniyoDnata::Format::Passwd(3)
2
3
4

NAME

6       Passwd - tied hash and DBI access to passwd files
7

SYNOPSIS

9        use AnyData;
10        my $users = adTie( 'Passwd', '/etc/passwd' );
11        print $users->{jdoe}->{homedir};
12        # ... other tied hash operations
13
14        OR
15
16        use DBI
17        my $dbh = DBI->connect('dbi:AnyData:');
18        $dbh->func('users','Passwd','/etc/passwd','ad_catalog');
19        my $g7 = $dbh->selectall_arrayref( qq{
20            SELECT username, homedir FROM users WHERE GID = '7'
21        });
22        # ... other DBI/SQL operations
23

DESCRIPTION

25       This module provides a tied hash interface and a DBI/SQL interface to
26       passwd files.  Simply specify the format as 'Passwd' and give the name
27       of the file and the modules will build a hash table with the column
28       names
29
30        username
31        passwd
32        UID
33        GID
34        fullname
35        homedir
36        shell
37
38       The username field is treated as a key column.
39
40       This module is a submodule of the AnyData.pm and DBD::AnyData.pm
41       modules.  Refer to their documentation for further details.
42
44       copyright 2000, Jeff Zucker <jeff@vpservices.com> all rights reserved
45
46
47
48perl v5.36.0                      2023-01-19        AnyData::Format::Passwd(3)
Impressum