Getting root in Ubuntu to install software, using Fastpanel 2 as an example

Getting root in Ubuntu to install software, using Fastpanel as an example

I encountered an interesting situation, advised several friends of Fastpanel to manage VPS, and found out that the instructions were not complete. Rooting in Ubuntu is not described at all, it just says "Run as root" (I'm using Ubuntu 20, I'd love to use 21 as well, but it's not supported). For some providers (for most European), root access is limited. I will describe several ways to solve this issue.

Option 1. Simple and safe

  1. Connecting via SSH
  2. We write in the console:
$ sudo su -

Everything, we are under root. After the restart, you will be under the standard user

Option 2: Permanent access

  1. Open /etc/ssh/sshd_config with administrator privileges, for example:
$ sudo nano /etc/ssh/sshd_config
  1. Добавляем, или раскомментируем значение, и сохраняем:

Ищем:

#PermitRootLogin prohibit-password

Меняем на:

PermitRootLogin yes

An easier option is to run the command in the console:

$ sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config

By default, the root password is not set in Ubuntu 20.04, to set it, you need to do the following:

$ sudo passwd
[sudo] password for linuxconfig: 
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully

Перегрузите сервис ssh

$ sudo /etc/init.d/sshd restart

или

$ sudo service sshd restart

После этого вы можете переподключиться по SSH с введенными данными (под root).

Fast panel installation

  1. Update the system and install wget
# apt-get update; apt-get install wget
  1. Run the installer with the following command:
# wget http://repo.fastpanel.direct/install_fastpanel.sh -O - | bash -
  1. After successful installation of FASTPANEL, the terminal will display information with access data to the control panel:
Congratulations! FASTPANEL® successfully installed and available for you at https://1.2.3.4:8888 
Login: fastuser
Password: password
  1. When you first log in, the panel will ask for a license, to issue it, you must enter your postal address (e-mail). Information about the license will be sent to the specified mailbox.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top