diff --git a/src/common/slurm_errno.h b/src/common/slurm_errno.h
index b873c479c799654d7d8c71fa0e830638844bec8f..162f2456493bfd158c3b845ea3d313d5239905bf 100644
--- a/src/common/slurm_errno.h
+++ b/src/common/slurm_errno.h
@@ -128,6 +128,23 @@ enum {
 	ESLURMD_SOCKET_DISCONNECT,
 	ESLURMD_UNKNOWN_SOCKET_ERROR,
 	ESLURMD_SIGNATURE_FIELD_TOO_SMALL,
+	ESLURMD_CAN_NOT_CREATE_BATCH_DIR,
+	ESLURMD_CAN_NOT_MODIFY_BATCH_DIR,
+	ESLURMD_CAN_NOT_CREATE_BATCH_SCRIPT,
+	ESLURMD_CAN_NOT_MODIFY_BATCH_SCRIPT,
+	ESLURMD_CAN_NOT_SETUP_ENVIRONMENT,
+	ESLURMD_SHARED_MEMORY_ERROR,
+	ESLURMD_CAN_NOT_SET_UID_OR_GID,
+	ESLURMD_CAN_NOT_SET_SID,
+	ESLURMD_CAN_NOT_SPAWN_THREAD_HANDLER,
+	ESLURMD_FORK_FAILED,
+	ESLURMD_EXECVE_FAILED,
+
+	/* slurmd errors with user job */
+	ESCRIPT_CHDIR_FAILED =			4100,
+	ESCRIPT_OPEN_OUTPUT_FAILED,
+	ESCRIPT_NON_ZERO_RETURN,
+
 	/* socket specific SLURM communications error */
 	SLURM_PROTOCOL_SOCKET_IMPL_ZERO_RECV_LENGTH =	5000,
 	SLURM_PROTOCOL_SOCKET_IMPL_NEGATIVE_RECV_LENGTH,