Index: clients/moira/menu.c
===================================================================
--- clients/moira/menu.c	(revision 4023)
+++ clients/moira/menu.c	(working copy)
@@ -802,13 +802,16 @@
 int toggle_logging(int argc, char *argv[])
 {
   char buf[BUFSIZ];
+  mode_t oldmask;
 
   if (!log_file)
     {
       sprintf(buf, "%s/%s-log.%d", get_tmp_dir(), whoami, getpid());
 
       /* open the file */
+      oldmask = umask(077);
       log_file = fopen(buf, "a");
+      umask(oldmask);
 
       if (!log_file)
 	Put_message("Open of log file failed.  Logging is not on.");
