Bug 155558

Summary: anaconda-ks.cfg encrypted root password is world readable
Product: Red Hat Enterprise Linux 4 Reporter: ben lemasurier <ben.lemasurier>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED RAWHIDE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0Keywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-04-21 14:10:29 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 ben lemasurier 2005-04-21 13:30:08 UTC
Description of problem:
the anaconda-ks.cfg file that is automatically placed in /root upon install is
given read permissions to everyone. This gives unauthorized users access to this
line:
rootpw --iscrypted <encrypted password here>

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

How reproducible:
Install EL4 and type ls -l /root
Actual results:
file is readable by everyone

Expected results:
should be chmod 600

Comment 1 Paul Nasrat 2005-04-21 13:34:10 UTC
/root should be 750 so you can't actually get to the dir to read the file if you
are not root.

ls -ld /root

Try as non-root user

cat /root/anaconda-ks.cfg - you should get permission denied.

Comment 2 ben lemasurier 2005-04-21 13:37:33 UTC
Silly me, your right. I guess an extra level of paranoia can't hurt though.

Comment 3 Paul Nasrat 2005-04-21 14:10:29 UTC
It looks as if that was the intent - I've commited this to rawhide.