in reply to Testing A users's unix password with perl

U should look into these 2 modules (assuming you have aces to read the shadow or passwd files).

this one is nice for parsing paswd and checking if there is users:
Unix::PasswdFile
and for manipulating the shadow
Unix::ShadowFile

I have used these 2 modules quite a lot. work well for me.
  • Comment on Re: Testing A users's unix password with perl

Replies are listed 'Best First'.
Re: Re: Testing A users's unix password with perl
by cfreak (Chaplain) on May 08, 2002 at 21:42 UTC

    Thanks. The Shadow file is what i need (I do have access to it) however I can't seem to find it on CPAN. Know where I can get it?

    Chris

    Some clever or funny quote here.
      Odd. I got it of cpan.. guess was a while ago

      I know it was abstracted heavily from Unix::ConfigFile That may have smothing for you..

      Looks like the Unix::PasswdFile might handle the shadow as well..
      also CfgTie::TieShadow looks like it could make it easier.

      as well the author is of Unix::ShadowFile is: Steve Snodgrass, ssnodgra-AT-fore.com
      you can try him. if all else fails email me and i will send you the .pm i got