- 1). Log in as root or a user with root privileges.
- 2). Call the system command from within your Perl script. The syntax is:
system("command");
Note the quotation marks; they are necessary. - 3). Use the "passwd" command to change the password of a specific user; in this case root. Your command should look something like this:
system("echo "your-new-password" | passwd --stdin root");
where your-new-password is the password you'd like to use for root. Retain all the quotation marks. - 4). Run your Perl script; root's password should now be changed.
Related Posts "Technology"
You might also like on "Technology"
How to Burn a VOB to a DVD
7/10/2019 5:22:00 PM
How to Burn MOV & AVI Files to CDs & DVDs
7/10/2019 4:43:00 PM
How to Defrag a Computer If it Says CHKDSK
7/10/2019 3:56:00 PM
SEO In Miami- How To Increase Your Site's Traffic & Convert Them To Buyers
7/10/2019 3:03:00 PM
How to Use ImgBurn to Make Music CDs
7/9/2019 10:36:00 PM
Overheating Central Processing Unit Solutions
7/9/2019 10:16:00 PM
How to Find My CPU Speed
7/9/2019 8:10:00 PM
Finding the Perfect Notebook for Students
7/9/2019 7:29:00 PM
How to Turn On "Num Lock" on a Laptop
7/9/2019 5:13:00 PM
How to Play the Korg Wavestation With My PC Keyboard
7/8/2019 4:33:00 PM
Solution for Your Keyboard Issues
7/8/2019 4:26:00 PM
How to Backup an HD DVD
7/8/2019 2:11:00 PM