#!/usr/bin/sh # Create the PrivSep empty dir if necessary if [ ! -d /var/run/sshd ]; then mkdir /var/run/sshd echo $? > /var/log/sshd.privsep.log chmod 0755 /var/run/sshd echo $? >> /var/log/sshd.privsep.log fi exit My apologies, I missed to add a ">" to the second echo.