Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 155558 - anaconda-ks.cfg encrypted root password is world readable
Summary: anaconda-ks.cfg encrypted root password is world readable
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: anaconda
Version: 4.0
Hardware: All
OS: Linux
Target Milestone: ---
: ---
Assignee: Anaconda Maintenance Team
QA Contact: Mike McLean
Depends On:
TreeView+ depends on / blocked
Reported: 2005-04-21 13:30 UTC by Benjamin D. Lemasurier
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2005-04-21 14:10:29 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description Benjamin D. 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
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 Benjamin D. 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.

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