Uncategorized

Bash Script For Changing Root Password Of A Server

Need this assignment written? Get a free quote from a subject specialist in minutes.

Order Your Essay
12,000+
Assignments delivered
97%
On-time delivery
800+
Verified writers
4.9★
Average rating

Create a bash script for changing root password for list of servers
Input :- read list of servers from a file, take password for user1, root password & new root password.

The script should loop through all the servers in the input file
login to server as user1
Then log as root (su -)
should take password directly from the inital input
Echo ” logged in as root and display server name”
Change root password with new passsword
Check if password change was successful and display output (success or failure)
 

sample change on one server:-
ssh user1@server01
Password of user1
[user1@server01]$su –
root password(this should directly take from input)
[root@server01 ~]# passwd
Changing password for user root.
New password:
Retype new password:
passwd: password successfully changed for root
passwd: all authentication tokens updated successfully.

The post Bash Script For Changing Root Password Of A Server first appeared on Scholarly Guider.

Plagiarism-Free Essay Writing

Have This Essay Written By a Professional — On Your Terms

  • Verified writers, vetted by subject
  • 100% plagiarism-free — Turnitin report included
  • Deadlines from 3 hours
  • Unlimited free revisions
  • Free quote — no card required
  • Money-back guarantee
Order Your Essay Get a Free Quote →
Share:
AD
admin3
Academic Writer & Editor

Expert academic writer and education specialist helping students in the UK, USA, and Australia achieve their best results.

← Previous
For this assignment, you will wri a 2 pagr describing the main functions and history of media in American politics
Next →
For this assignment, you will write a 4-5 pag describing the role and structure of Congress

Need Help With This Assignment?

No credit card · No commitment · Quote in minutes
Order Your Essay Get a Free Quote →