--- shadow-4.0.3/src/useradd.c~ 2006-05-19 10:11:52.793310287 -0600 +++ shadow-4.0.3/src/useradd.c 2006-05-19 10:11:52.793310287 -0600 @@ -1787,7 +1787,7 @@ if (ms != NULL) { sprintf(ms, "/var/mail/%s", user_name); if (access(ms, R_OK) != 0) { - fd = open(ms, O_CREAT|O_EXCL|O_WRONLY|O_TRUNC); + fd = open(ms, O_CREAT|O_EXCL|O_WRONLY|O_TRUNC,0); if (fd != -1) { fchown(fd, user_id, mail_gid); fchmod(fd, mode);