virtualMachine

Obtain root user privileges

Execute any command as the root user by prefixing it with the sudo command. For example, to check server status, use the command below and enter the password for the bitnami user when prompted:

$ sudo /opt/bitnami/ctlscript.sh status

To directly log in using the root user account, use this command:

$ sudo su

To set a new password for the root user account, use these commands:

$ sudo su
$ passwd
Last modification February 10, 2021