I have seen hints about options, but have not seen an actual complete solution for my issue. I know I must just be missing it, there must be one out there.
I currently have a couple thousand basic linux user accounts on a server with no control panel. These accounts do not use email, mysql, ssh, or anything really besides FTP access to upload files to their /home/username directory that if in the public_html folder then appears under the url http://www.mydomain.com/~theirusername
I want to import all these users into a cPanel system so we can start offering them more options/services including the ability to have their own domains, which they will not have when this move is done. All the accounts would all be created with the same Package (theme, quota, etc).
I have root access to the machine.
I have a list of the usernames.
I can backup their user directories to move them.
I do NOT have a list of their existing passwords in plain text, just what is in the encrypted /etc/shadow file.
I have gotten the idea that cPanel has some sort of scripting system that might allow the creating of cpanel accounts from the list of usernames.
I assume I can then just copy the contents of their /home/username directories to the new cpanel system (avoiding the .hidden files).
So my questions are
1) is there an existing script somewhere that will take a list of usernames and create accounts with a particular package? (so I don't go reinventing the admittedly simple wheel)
2) When creating the accounts with the script I am hoping exists, can I use a dummy password in the script and then simply insert the encrypted passwords from the old /etc/shadow file into the new /etc/shadow file matching them to the corresponding usernames (not copying the file over, I am aware the userID#s will change) or is there somewhere else the passwords are used/saved by cPanel as well as the shadow file?
Thanks.
I currently have a couple thousand basic linux user accounts on a server with no control panel. These accounts do not use email, mysql, ssh, or anything really besides FTP access to upload files to their /home/username directory that if in the public_html folder then appears under the url http://www.mydomain.com/~theirusername
I want to import all these users into a cPanel system so we can start offering them more options/services including the ability to have their own domains, which they will not have when this move is done. All the accounts would all be created with the same Package (theme, quota, etc).
I have root access to the machine.
I have a list of the usernames.
I can backup their user directories to move them.
I do NOT have a list of their existing passwords in plain text, just what is in the encrypted /etc/shadow file.
I have gotten the idea that cPanel has some sort of scripting system that might allow the creating of cpanel accounts from the list of usernames.
I assume I can then just copy the contents of their /home/username directories to the new cpanel system (avoiding the .hidden files).
So my questions are
1) is there an existing script somewhere that will take a list of usernames and create accounts with a particular package? (so I don't go reinventing the admittedly simple wheel)
2) When creating the accounts with the script I am hoping exists, can I use a dummy password in the script and then simply insert the encrypted passwords from the old /etc/shadow file into the new /etc/shadow file matching them to the corresponding usernames (not copying the file over, I am aware the userID#s will change) or is there somewhere else the passwords are used/saved by cPanel as well as the shadow file?
Thanks.