Ubuntu Server - Allow login as root

Introduction

In ubuntu server 12, after performing a general installation, you have to log in as the specified user from the installation before performing 'sudo su' to gain root priveledges. You cannot just login as root in the first place. You also have to do the same when you make an ssh connection. e.g you cannot just do 'ssh root@my.server.ip.address'. To fix this perform the following steps

    Log in as the user you specified during installation, for me that was 'stuart'
    su root
    Enter your password again (should be the same as for your user in step 1)
    passwd
    Enter the password you desire for the root user
    Enter the password again for confirmation/checking
    Done! you can now login as root, or you can ssh in as root.

No comments:

Post a Comment