Rename script names, add lock script
Add a user lock script to move users from ssh allow/foward group to ssh reject group. Rename user_create.sh script to create_user.sh script and add new ssh allow/foward flag in user_list.txt file after group block and before password name block Update check last login script with better add/remove from groups
This commit is contained in:
@@ -17,7 +17,7 @@ max_age_create=30;
|
||||
day=86400;
|
||||
# delete account strings
|
||||
delete_accounts="";
|
||||
user_group_tpl="deluser %s %s;adduser %s %s;";
|
||||
user_group_tpl="gpasswd -d %s %s;gpasswd -a %s %s;";
|
||||
# log base folder
|
||||
LOG="${BASE_FOLDER}/../log";
|
||||
# auth log file user;date from collect_login_data script
|
||||
|
||||
Reference in New Issue
Block a user