I have a custom installer for CentOS that I would like to add DirectAdmin to. It uses Kickstart to install the most recent version of CentOS, and then I use rc.local to download and run 'setup.sh' with pre-purchased licensing information.
Everything works great, except the 'admin' user's password is changed to something random, and then stored in a plain-text file on the disk in /usr/local/directadmin. I would like to prevent the DirectAdmin installer from modifying an existing password for the 'admin' user. It is not acceptable to log in with the root user to update the password after the installation is complete. I have a need to know what the 'admin' password is going to be after all software (including DirectAdmin) is installed in order to provide customer satisfaction. Right now, the best solution I can think of is to be able to set the password during the OS installation (via the kickstart), and install DirectAdmin with out changing the password. I would really rather not find some hack to wait for DirectAdmin to complete the install, and then change the 'admin' user's password back to what it was before the setup.sh script ran.
Everything works great, except the 'admin' user's password is changed to something random, and then stored in a plain-text file on the disk in /usr/local/directadmin. I would like to prevent the DirectAdmin installer from modifying an existing password for the 'admin' user. It is not acceptable to log in with the root user to update the password after the installation is complete. I have a need to know what the 'admin' password is going to be after all software (including DirectAdmin) is installed in order to provide customer satisfaction. Right now, the best solution I can think of is to be able to set the password during the OS installation (via the kickstart), and install DirectAdmin with out changing the password. I would really rather not find some hack to wait for DirectAdmin to complete the install, and then change the 'admin' user's password back to what it was before the setup.sh script ran.