Hi,
Sorry, but the way proposed by robartes, while certanly a solution is not 'the right thing'.

If you want to authenticate a user there are two aspects that must be adressed:

The first problem depends on the kind of interface you use (GUI, command line...). I'll try to help you there if you say something more about your interface.

the second problem is where the meat is. If, as it is the case of allmost all Unix installation these days, your system uses PAM, you could use the wonderfull modules avaible on CPAN Authen::PAM and Authen::SimplePam. The first is more powerfull, while the second, as the name suggests, is simpler and generally adapted to solve the kind of problems you have.

If any problem should arise using these modules, feel free to ask again, I'll try to help as well as I can

Hoping the help does some good...


Leo TheHobbit

In reply to Re: Passwords on unix by TheHobbit
in thread Passwords on unix by sawanv

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.