diff --git a/ssadmin.sh b/ssadmin.sh index 10ad413..2475a73 100755 --- a/ssadmin.sh +++ b/ssadmin.sh @@ -98,7 +98,7 @@ start_ss () { fi if [ -e $SSSERVER_PID ]; then if check_ssserver; then - echo 'sserver has started!' + echo 'ssserver has started!' return 1 else rm $SSSERVER_PID @@ -128,7 +128,7 @@ start_ss () { run_ssserver sleep 1 if check_ssserver; then - echo 'ssserver has' + echo 'ssserver has started' else echo 'ssserver failed to start' return 1 @@ -220,7 +220,7 @@ add_user () { TLIMIT=`bytes2gb $TLIMIT` if [ ! -e $USER_FILE ]; then echo "\ -# Split by \t and space +# Split by \t or space # port password limitation # 2345 abcde 1000000" > $USER_FILE; fi @@ -600,13 +600,13 @@ case $1 in ;; esac if [ "$EUID" -ne 0 ]; then - echo "Permission denied!" + echo "Permission denied! Must run as root!" exit 1; fi if type $SSSERVER 2>&1 >/dev/null; then : else - echo "Command ssserver not found, please set the path to ssserver in sslib.sh" + echo "Command ssserver not found, please set the path of ssserver in sslib.sh" exit 1; fi case $1 in diff --git a/sshelp b/sshelp index a964bc0..a794574 100644 --- a/sshelp +++ b/sshelp @@ -1,6 +1,6 @@ usage:ssadmin.sh [option] [port] [passwd] [limit] - port:port number, 0 < port <= 65535 - - passwd:password, can not have spaces, quotes, and other characters + - passwd:password, can not have spaces, quotes, and possibly other special characters - limit:traffic limitation,(support K/M/G/T or KB/MB/GB/TB) example: ssadmin.sh add 3333 abcde 10.5G Options and arguments: @@ -11,7 +11,7 @@ start : start ss service stop : stop ss service status : show ss service status restart : restart service -soft_restart: restart service without affecting the existing ss service +soft_restart: restart service without affecting the existing ss connections add [port] [passwd] [limit]: add user change [port] [passwd] [limit]: change the user info @@ -33,4 +33,5 @@ reset_all_used : set the traffic already used of all users as 0 rlim [port] : set the traffic limitation of the user who is using the port as 0 reset_all_limit: set the traffic limitation of all users as 0 -lrules: show iptables rules has been added \ No newline at end of file +lrules: show iptables rules has been added +