How is the root password read in linux when cpanel or direct admin is installed? I've searched all over google and some linux forums and have found nothing about how to access this data via any kind of program or script or file... Help is greatly appreciated.
Root password read via file when cpanel installed or, server transfer going on from one to another. If you open ticket at / tickets.cpanel.net / they will give you more specific information about that.
It's not hard for a script to be built to test the validity of the user/password...here's an example that may or may not work (haven't tested): http://www.unix.com/24328-post2.html
The root password is not read when installing these control panels at all. When installing, you are logged in as the root user, which gives you permission to the entire server, which allows these scripts to install things where ever they need to be installed, so there is no need to read this password. Chris
Alright, that makes sense... then how does cpanel set the root password for admin login to equal the root password for the whole server? I suppose it could just check the password as if you were logining into ssh every time, but that would be kind of mundane and slightly more resource intensive wouldn't it?
Hi there, I assume it would simply check the /etc/passwd file for the user trying to log, and if it matches, it would allow the user to enter. Chris