From 2dab42cf4f01a554d27d9157c37b70493ad70576 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Wed, 13 Jun 2018 12:57:45 +0100 Subject: [PATCH] etc/profile.d/functions --- etc/profile.d/functions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 etc/profile.d/functions diff --git a/etc/profile.d/functions b/etc/profile.d/functions old mode 100644 new mode 100755 index 5aafe57d..0279a551 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -771,7 +771,8 @@ http_head() { password_create() { local len=${1:-30} #local chars=${2:-'[:alnum:] #$,;.:*@[]()?+=_%-'} - local chars=${2:-'[:alnum:]#$,.@+=_-'} + #local chars=${2:-'[:alnum:]#$,.@+=_-'} + local chars=${2:-'[:alnum:]@-_=$*?./!'} tr -cd "$chars" < /dev/urandom | head -c${1:-${len}} echo } -- 2.47.3