Home / How To / How to install TeamPass Password Manager on Ubuntu 20.04

How to install TeamPass Password Manager on Ubuntu 20.04



TeamPass is a Collaborative Passwords Manager used to manage passwords and share them between team members. It uses the MySQL / MariaDB database to store passwords securely. It provides a powerful tool for customizing password access depending on the roles of users. It is free open source software and allows you to manage your passwords and related data in an organized way with respect to the access rights defined for each user. It comes with a rich set of features including, data encryption, personal folder, tree structure, user rights, role definition and many more.

In this tutorial we will show you how to install TeamPass Password Manager software on Ubuntu 20.04 using Let̵

7;s Encrypt SSL.

conditions

  • A server running Ubuntu 20.04.
  • A valid domain name is pointed to your server IP.
  • A root password is configured on the server.

Install LAMP Server

Before you begin, make sure that the LAMP server must be installed on your server. If it is not installed, you can install it with another package by running the following command:

apt-get install apache2 mariadb-server php7.4 php7.4-cli libapache2-mod-php7.4 php7.4-mysql php7.4-curl php7.4-mbstring php7.4-bcmath php7.4-common php7.4-gd php7.4-xml git wget -y

Once the LAMP server is installed, edit the php.ini file and change some settings:

nano /etc/php/7.4/apache2/php.ini

Change the following lines:

memory_limit = 256M
upload_max_filesize = 100M
max_execution_time = 360
date.timezone = Asia/Kolkata

When you are done, you can move on to the next step.

Create TeamPass database

Next, you need to create a database and users for TeamPass. Log in to the MariaDB shell with the following command:

mysql -u root

After logging in, create a database and a user for TeamPass with the following command:

MariaDB [(none)]> create database teampass;
MariaDB [(none)]> grant all privileges on teampass.* to t[email protected] identified by "password";

Then flush the privileges and leave MariaDB with the following command:

MariaDB [(none)]> flush privileges;
MariaDB [(none)]> exit;

Once your database has been created, you can move on to the next step.

Download TeamPass

First you need to download the latest version of TeamPass from the Git repository. You can download it to the Apache Web Browser Directory using the following command:

cd /var/www/html
git clone https://github.com/nilsteampassnet/TeamPass.git

When the download is complete, change the ownership of the www data user and set the correct state with the following command:

chown -R www-data.www-data /var/www/html/TeamPass/
chmod -R 775 /var/www/html/TeamPass/

When you are done, you can move on to the next step.

Configure Apache Web Server

First, create an Apache virtual host configuration file for TeamPass with the following command:

nano /etc/apache2/sites-available/teampass.conf

Add the following lines:

   
     ServerAdmin [email protected]
     DocumentRoot /var/www/html/TeamPass   
     ServerName teampass.linuxbuz.com

           
          Options FollowSymlinks
          AllowOverride All
          Require all granted
        

     ErrorLog ${APACHE_LOG_DIR}/teampass_error.log
     CustomLog ${APACHE_LOG_DIR}/teampass_access.log combined

  

Save the file when you are done. Then activate the apache virtual host file and restart the apache service to apply the changes:

a2ensite teampass
systemctl restart apache2

Once your Apache web server is set up, you can proceed to the next step.

Secure TeamPass with Let’s Encrypt SSL

First, you need to install the Certbot Let’s Encrypt client on your server. It is used to install and manage the Let’s Encrypt SSL certificate for your domain. Run the following command to install Certbot

apt-get install python3-certbot-apache -y

Once Certbot is installed, run the following command to download and install Let’s Encrypt SSL for your Web site:

certbot --apache -d teampass.linuxbuz.com

You must enter your valid email address and accept the service shown below:

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Enter email address (used for urgent renewal and security notices) (Enter 'c' to
cancel): [email protected]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server at
https://acme-v02.api.letsencrypt.org/directory
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(A)gree/(C)ancel: A

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing to share your email address with the Electronic Frontier
Foundation, a founding partner of the Let's Encrypt project and the non-profit
organization that develops Certbot? We'd like to send you email about our work
encrypting the web, EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for teampass.linuxbuz.com
Enabled Apache rewrite module
Waiting for verification...
Cleaning up challenges
Created an SSL vhost at /etc/apache2/sites-available/teampass-le-ssl.conf
Enabled Apache socache_shmcb module
Enabled Apache ssl module
Deploying Certificate to VirtualHost /etc/apache2/sites-available/teampass-le-ssl.conf
Enabling available site: /etc/apache2/sites-available/teampass-le-ssl.conf

Then you need to choose whether to redirect HTTP traffic to HTTPS as shown below:

Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your web server's configuration.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2

Type 2 to redirect all requests to secure HTTPS access and meet Get on to install Let’s Encrypt SSL. When the installation is complete, you should see the following output:

Enabled Apache rewrite module
Redirecting vhost in /etc/apache2/sites-enabled/teampass.conf to ssl vhost in /etc/apache2/sites-available/teampass-le-ssl.conf

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations! You have successfully enabled https://teampass.linuxbuz.com

You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=teampass.linuxbuz.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/teampass.linuxbuz.com/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/teampass.linuxbuz.com/privkey.pem
   Your cert will expire on 2020-10-17. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot again
   with the "certonly" option. To non-interactively renew *all* of
   your certificates, run "certbot renew"
 - Your account credentials have been saved in your Certbot
   configuration directory at /etc/letsencrypt. You should make a
   secure backup of this folder now. This configuration directory will
   also contain certificates and private keys obtained by Certbot so
   making regular backups of this folder is ideal.
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le

At this point, your site is secured with Let’s Encrypt SSL. You can now access it securely with HTTPS protocol.

Go to TeamPass web interface

Now go to your TeamPass web interface by visiting the URL https://teampass.linuxbuz.com. You should see the TeamPass welcome screen:

Team Pass installer

click NEXT button. You should see the server screen:

server Control

click LAUNCH and NEXT button. You should see the database connection screen:

database Settings

Enter your database information and click LAUNCH and NEXT button. You should see the preparation screen:

Create administrator account

click LAUNCH and NEXT button. You should see the screen to create table:

Create tables

click LAUNCH and NEXT button. You should see the Finalization screen:

Complete the installationadvertisement

click LAUNCH and NEXT button. When the installation is complete, you will see the following screen:

The installation is complete

Now click on Move to the website button. You will be redirected to the TeamPass login screen shown below:

Log in to TeamPass

Enter your username as admin and the password you entered during the installation process and click Log IN button. You should see the TeamPass Dashboard on the following screen:

TeamPass dashboard

Conclusion

In this guide, you learned how to install TeamPass Password Manager on Ubuntu 20.04 and secure it with Let’s Encrypt SSL. Now you can explore TeamPass and distribute it in the production environment. For more information, visit TeamPass official documentation.


Source link