Linux | bash | script | i am running self test

Linux: # FLOCK STUFF PIDFILE=/var/run/$(basename $0) exec 100>$PIDFILE flock -n 100 || exit 1 echo $ > $PIDFILE # … your code … test -r $PIDFILE && rm -f $PIDFILE FreeBSD: Install flock Other BSD: THATSME=”$(ps wwaux | grep -w $ | grep -v grep | awk ‘{$1=$2=$3=$4=$5=$6=$7=$8=$9=$10=””;print $0}’ | sed ‘s|^\s*||’)” && ps wwaux […]

RADIUS server // local authentication and authorization via unix + pam

Yeah, its sucks. Use this option in only secured networks! Check /etc/pam.d for radiusd file. /etc/raddb/clients.conf client 192.168.100.60 { ipv4addr = 192.168.100.60 secret = mysecret shortname = myshortname } /etc/raddb/radius.conf You wanna read /etc/shadow? Become root. —> Yeah, its sucks. Use this option in only secured networks! user = root group = root /etc/raddb/sites-enabled/default Section […]