password change

Discussion in 'Perl Misc' started by Patrick, Jun 25, 2004.

  1. Patrick

    Patrick Guest

    Hi,

    On unix system is it possibble to change the password of a user from a
    var?

    like:

    system("passwd $user");
    print("$password\n");
    print("$password\n");

    But this doesnt work. Passwd is waiting for a input.

    It's hpux so --stdin doesnt work also.

    Reg. Patrick
     
    Patrick, Jun 25, 2004
    #1
    1. Advertising

  2. Patrick wrote:
    >
    > On unix system is it possibble to change the password of a user from a
    > var?
    >
    > like:
    >
    > system("passwd $user");
    > print("$password\n");
    > print("$password\n");
    >
    > But this doesnt work. Passwd is waiting for a input.
    >
    > It's hpux so --stdin doesnt work also.


    Perhaps this posting from Randal will help:
    http://groups.google.ca/groups?selm=


    John
    --
    use Perl;
    program
    fulfillment
     
    John W. Krahn, Jun 26, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page