We recently updated our
Terms and Conditions for TechRepublic Premium.
By clicking continue, you agree to these updated terms.
Invalid email/username and password combination supplied.
An email has been sent to you with instructions on how to reset your password.
Welcome to TechRepublic!
All fields are required. Username must be unique. Password must be a minimum of 6 characters and have any 3 of the 4 items: a number (0 through 9), a special character (such as !, $, #, %), an uppercase character (A through Z) or a lowercase (a through z) character (no spaces).
The following is a perl program.
Make sure perl is in the /usr/bin directory.
chmod this file to 744 and chown to root
run the program as root
It will change all passwds (including root) to
password except those that have and * or !! for the passwd. These lines are Locked accounts or No passwd accounts.
I am not responsible for this script
MAKE A COPY OF THE /ETC/SHADOW FILE
BEFORE RUNNING THE SCRIPT
my $SHADOW = ‘/etc/shadow’;
my $PASSWD = ‘password’;
my $salt = chr(int(rand(26)) + 65) . chr(int(rand(26)) + 65);
my $encrypt = crypt $PASSWD, $salt;
open SHADOW, “< $SHADOW" or
die "$0: unable to open $SHADOW: $! \n”;