Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2007
    Posts
    3

    Unanswered: Automate user password change

    Hello,

    I would like to create a script that will change a particular user's password at the end of the day. We use IBM AIX 5.2 OS. The user id is "bsi" ..which is a superuser that we turn on a default password for vendor. After they have logged off the system we change it back to the inhouse systems default. I would like to change it back to systems default at the end of the day once it has been changed.

    Any suggestions or ideas would be most appreciated.

    Thank,

    Jav

  2. #2
    Join Date
    Jan 2007
    Location
    Jena, Germany
    Posts
    2,721
    You can use the OS APIs in a small program to set the password as was done in the attachment. Just rename the file to "setpwd.c".
    Attached Files Attached Files
    Knut Stolze
    IBM DB2 Analytics Accelerator
    IBM Germany Research & Development

  3. #3
    Join Date
    Feb 2007
    Posts
    3
    Thank you for the program. When I compile it, I get the following message:

    ld: 0706-027 The -A a flag is ignored.

    Am I missing some environment variable?

    Thanks,
    Jav

  4. #4
    Join Date
    Jan 2007
    Location
    Jena, Germany
    Posts
    2,721
    How do you try to compile it? I compiled/linked it with the statement given in the first comment of the source code.
    Knut Stolze
    IBM DB2 Analytics Accelerator
    IBM Germany Research & Development

  5. #5
    Join Date
    Feb 2007
    Posts
    3
    Yes..I also used the command that is in the source code:

    cc -o setpwd setpwd.c -ls

  6. #6
    Join Date
    Jan 2007
    Location
    Jena, Germany
    Posts
    2,721
    What is the complete output you see during compile?
    Have you tried another compiler like xlc_r?
    Knut Stolze
    IBM DB2 Analytics Accelerator
    IBM Germany Research & Development

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •