Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Changing account passwords in a script

Discussion in 'General Discussion' started by nxds, Jun 23, 2006.

  1. nxds

    nxds Well-Known Member

    Joined:
    Jan 6, 2006
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    156
    Is it safe to change account passwords using just the UNIX passwd command instead of the Cpanel interface or a Cpanel script?

    I have a number of accounts with very weak passwords, and I want to write a script to change them all. I am thinking of using a password generator (like apg) and feeding the new passwords in through stdin like this:

    Code:
    while read user; do apg -x 8 -n 1 | passwd --stdin $user; done
    Is this OK or is there a better way?
     
  2. benito

    benito Well-Known Member

    Joined:
    Jan 8, 2004
    Messages:
    322
    Likes Received:
    4
    Trophy Points:
    168
    Location:
    Mar del Plata - Argentina
    hi! Did you find a better way to change all passwords? I need to do it, even the same hard password for every customer.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. PlatinumServerM

    PlatinumServerM Well-Known Member
    PartnerNOC

    Joined:
    Jul 10, 2005
    Messages:
    400
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    New Jersey, USA
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice