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.


I can have another script file through which I can get user input and install RPM and then write to the config file, but I want to get user input and install rpm from one file.


I need one file that I can distribute it and does above things. How to do that?