On Thu, Apr 22, 2010 at 05:35:22PM -0700, MGandra@diskeeper.com wrote:
I have an RPM package which will install and I need to get the Username and Password for root user and write it to a config file.
This is a very bad idea. It's a massive security hole, and it will break / won't work in all sorts of automated / GUI installation scenarios.
Nevertheless, I did once work on an RPM for a proprietary database and in that RPM we had to ask for a license key to be entered during RPM installation. It does just work to read from stdin in the %post script.
It was still a bad idea ...
Rich.