/go/root sets a new password for the operating system's root account. GoAdmio keeps its own encrypted copy of that password, so changing it with plain passwd can leave GoAdmio with an outdated one. /go/root does both. It: It does not change the GoAdmio panel's admin password (admin), the database root password (mysqlset), or hosting account passwords (password). Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.
Quick start
# Change the root password
/go/root 'N3w-Str0ng-P@ssword'
# Change the root and go passwords together
/go/root 'N3w-Str0ng-P@ssword' --go
Options
| Argument | Required | Default | Notes |
|---|---|---|---|
<password> |
Yes | — | The new password. No length or strength rules are applied. |
--go |
No | — | Also sets the go user’s password. It is detected as text anywhere in the arguments, so a password that contains --go triggers it too. |
Examples
# Change the root password only
/go/root 'N3w-Str0ng-P@ssword'
# Change root and go, then confirm the date of the change
/go/root 'N3w-Str0ng-P@ssword' --go
passwd -S root
passwd -S go
# Remove the password from your shell's history afterwards
history -c
history -w
# Confirm the encrypted copy was updated
ls -l /var/go/etc/go.key
Output
| Outcome | What you get |
|---|---|
| Any run with a password | Your ROOT password has been changed successfully. |
| No argument | Nothing, and exit status 1. |
Notes on the output:
- The message doesn’t prove that the password changed. See Troubleshooting.
- Every run is logged to
/var/log/go/root.logwith a timestamp and********in place of the password.
See the full reference at /go/root and the GoAdmio command index.
GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.
