mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
Delete v-log-failed-login
This commit is contained in:
parent
da69aaa7aa
commit
822541d1c5
1 changed files with 0 additions and 32 deletions
|
@ -1,32 +0,0 @@
|
|||
#!/bin/bash
|
||||
# info: log failed login attempt
|
||||
# options: USER [IP]
|
||||
#
|
||||
# The function log failed login attempt
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Variable&Function #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
# Argument definition
|
||||
user=$1
|
||||
ip=${2-127.0.0.1}
|
||||
|
||||
time_n_date=$(date +'%T %F')
|
||||
time=$(echo "$time_n_date" |cut -f 1 -d \ )
|
||||
date=$(echo "$time_n_date" |cut -f 2 -d \ )
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Action #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
echo "$date $time $user $ip failed to login" >> $VESTA/log/auth.log
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Vesta #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
exit 0
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue