include affected command in "operation not permitted" error messages