Skip to content

Instantly share code, notes, and snippets.

View lgaggini's full-sized avatar

Lorenzo Gaggini lgaggini

View GitHub Profile
@lgaggini
lgaggini / check_file_perms.sh
Last active June 29, 2020 13:59
Check if the target path has the expected permissions
#! /bin/bash
# Author: Lorenzo Gaggini - [email protected]
# Check if a the target path has the expected permissions
#
# Usage: ./check_file_perms.sh -t target_path -p expected_permissions
function usage()
{
@lgaggini
lgaggini / check_password_expiry.sh
Created August 18, 2021 14:47
Calculates the password expiration date based on pwdChangeTime and validity in days
#!/bin/bash
# Author: Lorenzo Gaggini
#
# Calculates the password expiration date based on pwdChangeTime
# validity in days
usage() {
cat <<USAGE