标签:int cront bin 定时任务 highlight ado crontab sha 密码
change_passwd.sh
#!/bin/sh /usr/bin/chattr -i /etc/passwd /etc/shadow /etc/group /etc/gshadow /usr/bin/echo `/usr/bin/date +%Y%m%d%w` |/usr/bin/awk -F ‘‘ ‘{print $1$5$9"Jack_Cui"$3$5$7}‘ |/usr/bin/passwd --stdin root /usr/bin/chattr +i /etc/passwd /etc/shadow /etc/group /etc/gshadow
定时任务 crontab -e
#change_passwd 0 10 10,25 * * /bin/sh /srv/change_passwd.sh >/dev/null 2>&1
标签:int cront bin 定时任务 highlight ado crontab sha 密码
原文地址:https://www.cnblogs.com/jackcui/p/12123504.html