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 […]

bsh // create syllabeled passwords

function createPassword () { CNTSYLL=$1 CNTNUM=$2 test “x$1” == “x” && return 1 test “x$2” == “x” && return 1 PASS=”” YYY=( a e i o u ei au ai eu iu ui oi) ZZZ=( b c d f g h j k l m n p q r s t v w x y […]

script/console ftp upload one liner

With curl: curl -o /dev/null -s –connect-timeout 5 -T $TMPDIR/z_id.$CH_ID -u LOGIN:PASS ftp://URL:PORT/FILE.txt With ncftpput /usr/bin/ncftpput -u LOGIN -p PASS -P PORT -t 30 -F -T ‘UPLOADPREFIX’ -S ‘UPLOADSUFFIX’ -z -V URL /dls “FILE” ATTENTION: Add -DD to delet the local file afterwards. ATTENTION2: Quote ‘$’ in password with ‘\\\’ like ‘mypasscontains\\\$’