Added htpasswd replacement for systems without apache
This commit is contained in:
parent
5213599d56
commit
6b26036ab8
14
htpasswd.sh
Executable file
14
htpasswd.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
if [ $# -eq 0 ]
|
||||
then
|
||||
echo "Please provide output file"
|
||||
exit -1
|
||||
fi
|
||||
|
||||
OUTPUT=$1
|
||||
|
||||
echo -n "Enter username and press [ENTER]: "
|
||||
read USERNAME
|
||||
|
||||
echo -n "$USERNAME:" >> $OUTPUT
|
||||
openssl passwd -apr1 >> $OUTPUT
|
Loading…
Reference in New Issue
Block a user