Summary says it all. Here's an ugly (very briefly tested!!) patch: -Jarno --- src/config.c-old Thu Aug 24 12:18:55 2000 +++ src/config.c Thu Aug 24 12:19:51 2000 @@ -1221,13 +1221,17 @@ /* Root saves new configuration */ if (real_uid == 0) { - if ((fp = fopen(parfile, "w")) == (FILE *)NULL) { + /* Jarno if umask is 077 then only root can read the config*/ + if ((fp = fopen(parfile, "w")) == (FILE *)NULL) { werror(_("Cannot write to %s"), parfile); return(-1); } writepars(fp, 1); - fclose(fp); - werror(_("Configuration saved")); + fclose(fp); + /* Try to chmod the file */ + chmod( parfile, (mode_t) 0644 ); + + werror(_("Configuration saved")); } else { /* Mortals save their own configuration */ if ((fp = sfopen(pparfile, "w")) == (FILE *)NULL) {