There is no default root password on QuantaStor systems.
If the root password has changed you could use the QuantaStor recovery console to correct the change made to the sudoers file or set the password for the root user.
Below are the details on accessing the recovery console once more.
QuantaStor Recovery Console:
- Step 1) Reboot the system and hold the [Shift] key during Boot. This will cause the Linux Grub prompt to be displayed.
- Step 2) Select the Recovery console mode listed at the top of the grub prompt.
- Step 3) You will be prompted with a menu once the recovery console has loaded.
You should first choose the 'clean' option as this will mount the root filesystem in rw mode and cleanup any cached update files or temporary files that are not needed.
Step 4) Once you have completed your changes you should reboot the system to ensure all of the QuantaStor services come up cleanly.
Once the clean mode has completed you will be returned to the recovery console menu.
Next, please select the 'root' option to enter a shell as a user with root privileges.
With root access, you can correct the change to the sudoers file as well as set a root user password using the `passwd` command.
- Step 4) Once you have completed your changes you should reboot the system to ensure all of the QuantaStor services come up cleanly.
You can login to root on system console (and thus do have the password), but not over SSH. By default we disable root login over SSH (with it only available via console, or by logging in over SSH as a different user first and then using sudo/su).
To change this you can modify the '/etc/ssh/sshd_config' file, find the "PermitRootLogin prohibit-password" line, and change the "prohibit-password" part to "yes". We have nano, vim, and pico editors installed by default which you can use to accomplish that via console.
After editing the file, do a "/etc/init.d/ssh restart" and the change will be live and someone will be able to login over SSH as root.
If you'd prefer, here is a one-liner that will accomplish this all for you, if you are logged in as root:
sed -i '/^PermitRootLogin/s/prohibit-password/yes/' /etc/ssh/sshd_config ; /etc/init.d/ssh restart
Changing the password of any user is accomplished by just typing "passwd" as that user and hitting enter, it will prompt you twice for the new password (if root; if not root, it might also prompt you to enter the existing password first, a step root usually gets to skip).
If you are logged in as root, you can also type "passwd <username>" (like, say, "passwd qadmin") and you will change that user's password instead.