Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 59810

Summary: useradd creates mail writable for group!!! (PATCH in duplicate bug)
Product: [Retired] Red Hat Linux Reporter: martynas
Component: shadow-utilsAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED ERRATA QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: high    
Version: 8.0CC: gaoxl, honza, jarno.huuskonen, jroyse, mitr
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-02-20 18:28:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description martynas 2002-02-13 15:44:11 UTC
Hello,
useradd utility creates /var/spool/mail/$user with chmod 660 !! So, it is 
writable to group!! If users are in the same group (for example, users), they 
can to delete other users email(i tried it)!!!!! try useradd -g users user1 and 
look at /var/spool/mail !

Please, fix it as soon as possible, and email me with answer.

Thank you
Sincerely
Martynas Bieliauskas

Comment 1 Alan Cox 2002-12-18 18:03:53 UTC
*** Bug 75418 has been marked as a duplicate of this bug. ***

Comment 2 Mark J. Cox 2003-02-11 13:28:42 UTC
*** Bug 77385 has been marked as a duplicate of this bug. ***

Comment 3 Mike A. Harris 2003-02-14 23:23:09 UTC
Not confirming nor denying this report, as I haven't tested it in 8.0, but
I'm putting a hyperlink to the proposed patch into this bug report, so it
is more accessible:

https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=79325&action=view

The rawhide packages should also be checked for this vulnerability as well
as older releases.  I tested Red Hat Linux 7.1 up2date and it doesn't appear
affected.

Comment 4 Mark J. Cox 2003-02-20 18:28:04 UTC
An errata has been issued which should help the problem described in this bug report. 
This report is therefore being closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, please follow the link below. You may reopen 
this bug report if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2003-057.html