Frans Pop
2006-Jun-20 20:51 UTC
Bug#374705: adduser: creates incorrect mail spool files during new installation
Package: adduser Version: 3.87 Severity: serious Tags: d-i After a new installation using Debian Installer, there are wrong mail files for several (system) users that are created during the installation: # cd /target/var/spool/mail # ls -l ---------- 1 root mail 0 2006-06-20 13:41 Debian-exim ---------- 1 root mail 0 2006-06-20 13:55 fjp ---------- 1 root mail 0 2006-06-20 13:41 identd ---------- 1 root mail 0 2006-06-20 13:41 statd (fjp is the normal user created during this install) Note that both the permissions and the ownership are broken. This breaks mail delivery for the installed system. AFAIK there is actually no need to create mail spool files for new users? I was able to create a similar file from the d-i debug shell: # chroot /target adduser xxx [...] # ls -l xxx ---------- 1 root mail 0 2006-06-20 14:15 xxx
Stephen Gran
2006-Jun-20 22:51 UTC
[Adduser-devel] Bug#374705: adduser: creates incorrect mail spool files during new installation
This one time, at band camp, Frans Pop said:> After a new installation using Debian Installer, there are wrong mail > files for several (system) users that are created during the > installation:[snip] This one time, at band camp, Joey Hess said:> I installed the desktop task on this laptop, then switched it to postfix > and installed a few other packages like nstxcd that also create users on > install. The result:[snip] I think the bug is in shadow, as there have been changes in this area recently: shadow (1:4.0.15-10) unstable; urgency=high + check the return value of fchown before fchmod when the mailbox is created by useradd + The patch also uses login.defs::MAIL_DIR instead of /var/mail. -- Christian Perrier <bubulle@debian.org> Thu, 18 May 2006 01:44:56 -0500 adduser doesn''t touch the mail spool when adding users. I am not reassigning yet, as I am not positive. Can you test with an earlier useradd and let me know if the bug is indeed there?> I suspect that the BOGUS.joey.CY8W is from postfix moving the wrong > owner and permissions joey file out of the way when delivering mail > later.I suspect it''s procmail, but yes. It''s an MDA thing, and a feature at that. Thanks, -- ----------------------------------------------------------------- | ,''''`. Stephen Gran | | : :'' : sgran@debian.org | | `. `'' Debian user, admin, and developer | | `- http://www.debian.org | ----------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20060620/ccc27e69/attachment.pgp