| 1234567891011121314151617181920212223242526272829 |
- #!/bin/bash
- # Licence : GPL v3
- # Author: Laurent HUBERT
- #
- # Changes the root password
- #
- cat <<EOF
- +---------------------------------------------+
- | Changing super-user password |
- +---------------------------------------------+
- EOF
- status=1
- while [ 0 -ne "$status" ]
- do
- passwd
- status=$?
- if [ 0 -ne "$status" ]
- then
- echo "### Error changing super-user password ###"
- echo "Please try again"
- else
- echo "> super-user password : changed <"
- exit 0
- fi
- done
- echo "### An error occurred changing super-user password ###"
- exit $status
|