diff -urN ../nagios.orig/base/utils.c ./base/utils.c
--- ../nagios.orig/base/utils.c	Fri Apr 29 13:06:23 2005
+++ ./base/utils.c	Fri Apr 29 13:06:27 2005
@@ -3591,6 +3591,11 @@
 	printf("Original UID/GID: %d/%d\n",(int)getuid(),(int)getgid());
 #endif
 
+	/* only drop privileges if we're running as root, so we don't
+	 * interfere with being debugged while running as some random user */
+	if(getuid()!=0)
+		return OK;
+
 	/* set effective group ID */
 	if(group!=NULL){
 		
