Skip to main content

New EC2 Instance - Cannot create Root User

Comments

3 comments

  • cPRex Jurassic Moderator
    Hey there! I'm not sure I am completely following the issue that is happening on your system, but every server does have a root user as "root" is created as part of the server setup process. I can't comment on the ec2-user access, but WHM is always accessible with the root username and password at
    0
  • quietFinn
    @scottrichardson when you log into your server in SSH you should 1st set root's password: sudo passwd root after that you can su to root: su - and you can connect to WHM with user root & the password you have set.
    0
  • scottrichardson
    @scottrichardson when you log into your server in SSH you should 1st set root's password: sudo passwd root after that you can su to root: su - and you can connect to WHM with user root & the password you have set.

    Yeah this is what I tried to do, however when I entered the commands to set the password, the ssh client told me to log into WHM for the first time and set the root password via that - which I did and it's now working. But just odd that it didn't follow the typical process as indicated in the cPanel documentation. When I set up my various CentOS WHM environments, I was able to set the root password via SSH as standard. Ultimately it doesn't really matter as I don't really use root via SSH for anything. Worth at least highlighting that my experience was different and for other people to be aware of it when setting up an EC-2 instance at AWS with the AlmaLinux+cPanel AMI.
    0

Please sign in to leave a comment.