| Summary: | Mageia installer leaves a copy of root password hash in /root/drakx/auto_inst.cfg.pl | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Paul Blackburn <paul.blackburn> |
| Component: | Installer | Assignee: | Mageia tools maintainers <mageiatools> |
| Status: | NEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | mageia, pterjan |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | CVE: | ||
| Status comment: | |||
|
Description
Paul Blackburn
2023-01-12 11:57:50 CET
Thank you for this detailed report. Assigning forthwith to the Installer people. Component:
RPM Packages =>
Installer I agree it would be better to set the file permissions to 640, but as the directory can only be accessed by root, I don't think it's a serious issue. I don't see a problem with the password hash being viewable by root, as the same hash is viewable in /etc/shadow. auto_inst.cfg.pl is there to allow a system to be reinstalled without any manual input, so yes, the password hash is needed for that. CC:
(none) =>
mageia Hello Martin,
Please would you confirm: when install is completed and system rebooted there is no need to store a root password hash in /root/drakx/auto_inst.cfg.pl ?
I observe that after install and reboot, if the root password is changed then the root password hash in in /root/drakx/auto_inst.cfg.pl remains unchanged.
For me, there should only be one copy of the root password hash in /etc/shadow:
grep root: /etc/shadow | awk -F: '{print $2}'
The goal of /root/drakx/auto_inst.cfg.pl is to record all parameters of the install to allow reinstalling or installing another machine with the same parameters automatically. That file is written when the install completes and is not used by anything unless you copy it somewhere to use it for installing. See https://wiki.mageia.org/en/Auto_inst CC:
(none) =>
pterjan Salut Pascal That sounds like a useful capability. Interesting wiki page for Auto_inst. I do not need this so I will simply make sure I reset the root password after installation. Merci Cordialement |