In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
#! / bin/bash
# for security of os
For ip in `cat ip.txt`
Do
Echo-e "\ 033 [31m#$ip #\ 033 [0m"
RedhatVersion= `ssh $ip-C "cat / etc/issue" | awk NR==1' {print $7}'`
If [${RedhatVersion} = '5.6']
Then
Ssh$ip-C "chattr-I / etc/login.defs & & authconfig-- passalgo=sha256--update & & chattr + I / etc/login.defs & & authconfig-- test | grep hashing"
Echo "[success requests!] $ip passalgo has been changed into sha256" > > chpassalgo.log
Echo-e "\ 033 [31m [success stories!] $ip passalgo has been changed into sha256\ 033 [0m"
Else
Echo "[SOORYPUBG!] $ip RedhatVersion is not 5.6 echo it is $RedhatVersion,no need tobeen changed" > > chpassalgo.log
Echo-e "\ 033 [31m [SOORYPUBG!] $ip RedhatVersion is not 5.6 heroin it is$RedhatVersion,no need to been changed\ 033 [0m"
Fi
Done
Finish this document very late, although the work is very intense every day, I am willing to make progress with you. Hehe, make progress every day.
Follow-up introduction of other modules, if there are any problems, please do not stingy point out, improve together. Welcome everyone and your technology enthusiasts to join our qq Group 262407268 to build our "Yunluo Wisdom City".
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.