AnyData::Format::Passwd(3pm)

AnyData::Format::Passwd3pm

Tied hash and dbi access to passwd files

Usage

 use AnyData;
 my $users = adTie( 'Passwd', '/etc/passwd' );
 print $users->{jdoe}->{homedir};
 # ... other tied hash operations
 OR
 use DBI
 my $dbh = DBI->connect('dbi:AnyData:');
 $dbh->func('users','Passwd','/etc/passwd','ad_catalog');
 my $g7 = $dbh->selectall_arrayref( qq{
     SELECT username, homedir FROM users WHERE GID = '7'
 });
 # ... other DBI/SQL operations

Overview

This module provides a tied hash interface and a DBI/SQL interface to passwd files. Simply specify the format as 'Passwd' and give the name of the file and the modules will build a hash table with the column names

 username
 passwd
 UID
 GID
 fullname
 homedir
 shell

The username field is treated as a key column.

This module is a submodule of the AnyData.pm and DBD::AnyData.pm modules. Refer to their documentation for further details.

Releases

11 releases since Debian 3.1 (Sarge); the text changed 7 times.

  1. 3.1
  2. 4.0–5.0
  3. 6.0–7
  4. 8
  5. 9–10
  6. 11
  7. 12
  8. 13

From libanydata-perl 0.12-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.