diff --git a/README.md b/README.md index 65c2090..60c9c0e 100644 --- a/README.md +++ b/README.md @@ -45,11 +45,10 @@ Run the script with below option to see all available options:- root@host:~# bash <(wget -q https://raw.githubusercontent.com/pratiktri/server_init_harden/master/init-linux-harden.sh -O -) --help Usage: sudo bash /dev/fd/63 [-u|--username username] [-r|--resetrootpwd] [--defaultsourcelist] - -u, --username Username for your server (If omitted script will choose an username for you) - -r, --resetrootpwd Reset current root password - -hide, --hide-credentials Credentials will hidden from the screen and can ONLY be found in the logfile (tail -n 20 /tmp/logfilename) - -d, --defaultsourcelist Updates /etc/apt/sources.list to download software from debian.org - NOTE - If you fail to update system after using it, you need to manually reset it. This script keeps a backup in the same folder + -u, --username Username for your server (If omitted script will choose an username for you) + -r, --resetrootpwd Reset current root password + -hide, --hide-credentials Credentials will hidden from the screen and can ONLY be found in the logfile (tail -n 20 /tmp/logfilename) + -d, --defaultsourcelist Updates /etc/apt/sources.list to download software from debian.org Example: bash ./linux_init_harden.sh --username myuseraccount --resetrootpwd diff --git a/init-linux-harden.sh b/init-linux-harden.sh index 46f9541..b9569d4 100644 --- a/init-linux-harden.sh +++ b/init-linux-harden.sh @@ -32,11 +32,10 @@ function usage() { fi echo "Usage: sudo bash $0 [-u|--username username] [-r|--resetrootpwd] [--defaultsourcelist]" - echo " -u, --username Username for your server (If omitted script will choose an username for you)" - echo " -r, --resetrootpwd Reset current root password" - echo " -hide, --hide-credentials Credentials will hidden from the screen and can ONLY be found in the logfile (tail -n 20 logfile)" - echo " -d, --defaultsourcelist Updates /etc/apt/sources.list to download software from debian.org" - echo " NOTE - If you fail to update system after using it, you need to manually reset it. This script keeps a backup in the same folder" + echo " -u, --username Username for your server (If omitted script will choose an username for you)" + echo " -r, --resetrootpwd Reset current root password" + echo " -hide, --hide-credentials Credentials will hidden from the screen and can ONLY be found in the logfile (tail -n 20 logfile)" + echo " -d, --defaultsourcelist Updates /etc/apt/sources.list to download software from debian.org" echo "" echo "Example: bash ./$SCRIPT_NAME.sh --username myuseraccount --resetrootpwd"