Uncategorized

Saturdaynight Ubuntu puzzle

For the Unix saturday night puzzle entry: #!/bin/bash cat $1|while read EMPID FIRST INIT LAST JOB SEX DATEX SAL EXT1 EXT2 do if [[ ${SAL} == “” && FIRST != “” ]]; then SAL=${DATEX} DATEX=${SEX} SEX=${JOB} JOB=${LAST} LAST=${INIT} INIT=””; fi let DATEPOCH=`date -d “$DATEX” +%s 2>/dev/null` 2>/dev/null let DATEPOCH=${DATEPOCH}-1 DATEX=`date –date @${DATEPOCH} +”%Y-%m-%d”` if [[

Saturdaynight Ubuntu puzzle Read More »

Evaluation order of $PATH variable and why its important to understand.

I recently came across a default SLES installation which has the following $PATH: (truncated for clarity) /sbin:/usr/sbin/:${HOME}/bin:/bin:/usr/sbin/:/usr/local/bin ………. This at first glance appears as a security problem , as a malevolant user can add $HOME/bin/ls and a user can execute a different ls or other arbitrary command that does something totally different. However, changing the

Evaluation order of $PATH variable and why its important to understand. Read More »

Owncloud

I installed owncloud today on my private unix webserver. Installation was fast & painless with Mysql backend, but sqlite somehow didn’t work. This program really is an awesome web application, as it allows you many things. It even intergrates my roundcube webmail client painlessly. -Mark.

Owncloud Read More »