Wednesday, 21 February 2018

How to change Password by using sh script

Please find below script For change password automatic . set below script in crontab

Create new file .sh

vim  /home/Alert/pass.sh

Enter below line in .sh file

#!/bin/bash
# Change password echo -e "Password\nPassword" | passwd username

Set permission for .sh file

chmod 777 /home/Alert/pass.sh


set script in crontab :-


45 10 * * * /bin/sh /home/Alert/pass.sh


Done

No comments:

Step-by-step OpenLDAP Installation and Configuration on server

This tutorial describes how to install and configure an OpenLDAP server and also an OpenLDAP client. Step by Step Installation and Conf...