Become root and select a password


To carry out certain actions, you may need to become root. These include:

  • Installing packages
  • Selecting a password for a user or root user (This is necessary for KVM access)
  • Carrying out certain administrative tasks

Prerequisites

 

  • You must be logged in as the default user (admin or the distribution name for the most recent images)

Information

We are assuming in this guide that the default user is called admin.

Enter a password

  • Enter a password for the admin user (For security reasons, the password will not be shown as you type it):
~$ sudo passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated 
successfully

Further examples

  • Update repositories (Debian/Ubuntu)
~$ sudo apt-get update
  • Update the system (CentOS/Fedora)
~$ sudo yum update
  • Edit a configuration file:
~$ sudo vi /etc/hosts.allow

 

Become root

~$ sudo su -
~#
  • Enter a root password (after becoming root):
~# passwd
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
  • Enter a password for the admin user
~# passwd admin
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
 
  • 2 Els usuaris han Trobat Això Útil
Ha estat útil la resposta?

Articles Relacionats

Changing the hostname of an instance

The cloud-init program not only lets you configure your Public Cloud instance when you create it...

Create an instance in your customer account

The Public Cloud lets you create virtual servers (instances) quickly and easily in just a few...

Logging in to Public Cloud Instance

Objective Logging in to your Public Cloud instance is similar to a standard login for a VPS or...

Install Wordpress on an instance

WordPress is a content management system (CMS) which lets you create your website quickly and...

Create and configure an additional disk on an instance

It is possible to create additional disks for your Public Cloud instances. This can be useful in...