Year: 2012

Detect VMware guest in cfengine

There are a few reliable ways to detect if the host is a VMWare guest. The ones below make the most sense. First choice: “vmware_guest” expression => returnszero(“/bin/grep -qi vmware /proc/scsi/scsi”,”noshell”); Second choice: “vmware_guest” expression => fileexists(“/usr/sbin/vmware-toolbox-cmd”);

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.