Bug 210853 - useradd doesn't create mail spool files
useradd doesn't create mail spool files
Product: Fedora
Classification: Fedora
Component: shadow-utils (Show other bugs)
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Peter Vrabec
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2006-10-16 05:14 EDT by Nuno Monteiro
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-10-17 09:54:38 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Nuno Monteiro 2006-10-16 05:14:32 EDT
Description of problem:

/usr/sbin/useradd doesn't create mail spool files, and that makes non-setuid/gid
MDA's (like postfix handing actual delivery out to procmail) unable to deliver
mail. This is true even if CREATE_MAIL_SPOOL is set to yes in /etc/default/useradd

Version-Release number of selected component (if applicable):

# rpm -q shadow-utils

How reproducible:

It's always reproducible.

Steps to Reproduce:
1. Simply create a new user.

Actual results:
No /var/spool/mail/$USER is created

Expected results:

An empty file called $USER with ownership $USER.mail should be created in

I tested this on two boxes running RH9 and FC3, respectively, and it worked as
expected, the spool file was created:

access("/var/mail/test", R_OK)         = -1 ENOENT (No such file or directory)
027763516040) = 9

(this trace is from the FC3 box)

Additional info:
Comment 1 Peter Vrabec 2006-10-17 09:54:38 EDT
fixed in comming update shadow-utils-4.0.14-10.FC5.

Note You need to log in before you can comment on or make changes to this bug.