Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Passwd::Unix 0.621

    Download button

    No screenshots available
    Downloads: 136  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Strzelecki Lukasz | More programs
    Perl Artistic License / FREE
    December 28th, 2011, 14:49 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Passwd::Unix description

    Provides an abstract interface to /etc/passwd, /etc/shadow and /etc/group format files

    Passwd::Unix is a Perl module that provides an abstract interface to /etc/passwd, /etc/shadow and /etc/group format files. It is inspired by Unix::PasswdFile module (that one does not handle /etc/shadow file, what is necessary in modern systems like Sun Solaris 10 or Linux).

    SYNOPSIS

     use Passwd::Unix;
     
     my $pu = Passwd::Unix->new();
     my $err = $pu->user("example", $pu->encpass("my_secret"), $pu->maxuid + 1, 10,
     "My User", "/home/example", "/bin/bash" );
     $pu->passwd("example", $pu->encpass("newsecret"));
     foreach my $user ($pu->users) {
     print "Username: $user\nFull Name: ", $pu->gecos($user), "\n\n";
     }
     my $uid = $pu->uid('example');
     $pu->del("example");

     # or

     use Passwd::Unix qw(check_sanity reset encpass passwd_file shadow_file
     group_file backup warnings del del_user uid gid gecos
     home shell passwd rename maxgid maxuid exists_user
     exists_group user users users_from_shadow del_group
     group groups groups_from_gshadow);
     
     my $err = user( "example", encpass("my_secret"), $pu->maxuid + 1, 10,
     "My User", "/home/example", "/bin/bash" );
     passwd("example",encpass("newsecret"));
     foreach my $user (users()) {
     print "Username: $user\nFull Name: ", gecos($user), "\n\n";
     }
     my $uid = uid('example');
     del("example");



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    passwd interface | shadow interface | Perl module | passwd | shadow | group

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM