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. Advertisements

  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. Advertisements

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.
Similar Threads
  1. jn148
    Replies:
    1
    Views:
    5,671
    Keith
    Nov 7, 2003
  2. Ching Liang
    Replies:
    2
    Views:
    854
    Tommy
    Feb 24, 2004
  3. feng
    Replies:
    4
    Views:
    1,543
  4. John Beard
    Replies:
    1
    Views:
    5,523
    thaya
    Sep 6, 2006
  5. Ray Stevens

    Can I change the APSNET password?

    Ray Stevens, Jan 14, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    335
    =?Utf-8?B?dmJNZW50YWw=?=
    Jan 14, 2005
  6. Luqman
    Replies:
    5
    Views:
    1,086
  7. AAaron123
    Replies:
    2
    Views:
    3,016
    AAaron123
    Jan 16, 2009
  8. AAaron123
    Replies:
    1
    Views:
    1,648
    Oriane
    Jan 16, 2009
Loading...