Switching VM Users

You can change users on an Oracle Java Cloud Service VM in order to perform specific administration tasks.

You must SSH to a VM only as the opc user. This user has root privileges on the OS running in the VM. For example, opc can be used to create other OS users on a VM. Simply prefix root operations with the sudo command. For example:

sudo useradd myuser

Note:

There is no default password for the opc user.

Switching to Oracle

The oracle VM user has regular OS user permissions. It is intended to be used to start and stop Oracle products that have been installed on the VM, or to run other Oracle applications and utilities on the VM.

Type the following to become the oracle user:

sudo su - oracle

Note:

There is no default password for the oracle user.

Switching to Root

An alternative to using the sudo command to perform root OS operations with the opc user is to switch to the root user.

Type the following to become the root user:

sudo -s

Note:

Avoid using the root user except to perform privileged OS administration tasks.