{"id":6379,"date":"2020-07-16T20:50:23","date_gmt":"2020-07-16T17:50:23","guid":{"rendered":"https:\/\/kifarunix.com\/?p=6379"},"modified":"2024-03-14T22:09:04","modified_gmt":"2024-03-14T19:09:04","slug":"install-and-setup-passbolt-password-manager-on-ubuntu","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-and-setup-passbolt-password-manager-on-ubuntu\/","title":{"rendered":"Install and Setup Passbolt Password Manager on Ubuntu 20.04"},"content":{"rendered":"\n<p>In this tutorial, you will learn how to install and setup Passbolt password manager on Ubuntu 20.04. <a href=\"https:\/\/www.passbolt.com\/\" target=\"_blank\" aria-label=\"undefined (opens in a new tab)\" rel=\"noreferrer noopener\">Passbolt<\/a> is is a free, open source, self-hosted, extensible, OpenPGP based password manager that enables teams to securely store their personal as well as share their common credentials. It is available both a subscription based and community edition. This tutorial focuses on the setup of community edition.<\/p>\n\n\n\n<p>As of this writing, there is no official guide release for setting up Passbolt on Ubuntu 20.04. As such, we are going to install Passbolt from the source code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installing Passbolt Password Manager on Ubuntu 20.04<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Install and setup a fresh Vanilla Ubuntu 20.04 server.<\/li>\n\n\n\n<li>Allocate the server at least 2 GB RAM and 2 vCPUs<\/li>\n\n\n\n<li>A resolvable hostname or IP address of your server.<\/li>\n\n\n\n<li>Install and setup LEMP\/LAMP stack on Ubuntu 20.04<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Install LAMP\/LEMP Stack on Ubuntu 20.04<\/h3>\n\n\n\n<p>Assuming that the first three prerequisites mentioned above have been met, proceed to install LEMP\/LAMP stack on Ubuntu 20.04 server. Note that Password is written in PHP and hence, it requires either a LEMP or a LAMP stack to run.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Install PHP 7.3 on Ubuntu 20.04<\/h4>\n\n\n\n<p><strong>NOTE:<\/strong> By default, Ubuntu 20.04 ships with PHP 7.4 in its repos. Passbolt doesn&#8217;t fully support PHP 7.4 yet. As such, ensure that you install PHP 7.3. The LAMP\/LEMP guides below uses PHP 7.4. Be sure to install PHP 7.3 and its modules.<\/p>\n\n\n\n<p>To install PHP 7.3, insatll the <strong>Ondrej<\/strong> PPAs and install PHP 7.3;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install software-properties-common<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>add-apt-repository ppa:ondrej\/php --yes<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt update<\/code><\/pre>\n\n\n\n<p>You can then install PHP 7.3;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install php7.3 php7.3-mysql<\/code><\/pre>\n\n\n\n<p>Follow either of the links below to set up LAMP or LEMP stack on Ubuntu 20.04.<\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-lamp-stack-on-ubuntu-20-04\/\" target=\"_blank\" aria-label=\"undefined (opens in a new tab)\" rel=\"noreferrer noopener\">Install LAMP Stack on Ubuntu 20.04<\/a><\/p>\n\n\n\n<p><a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-and-setup-lemp-stack-on-ubuntu-20-04\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install and Setup LEMP Stack on Ubuntu 20.04<\/a><\/p>\n\n\n\n<p><strong>In this tutorial, we are using LAMP stack to run Passbolt.<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Create Passbolt Database and Database User<\/h3>\n\n\n\n<p>Login to MariaDB\/MySQL database server;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>mysql<\/code><\/pre>\n\n\n\n<p>The above assumes that your MySQL\/MariaDB database is using unix_socket for authentication and that you are executing the command as a root user. If you are not root and have sudo rights, simply use; <code><strong>sudo mysql -u root<\/strong><\/code>. Otherwise, you can just use <code><strong>mysql -u root -p<\/strong><\/code> command.<\/p>\n\n\n\n<p><strong>Replace the name of the database, the database user username and password as you see fit.<\/strong><\/p>\n\n\n\n<p>Create Passbolt database that supports non latin characters and emojis.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>CREATE DATABASE passbolt CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;<\/code><\/pre>\n\n\n\n<p>Create a Passbolt database user and grant all privileges on the Passbolt database.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>grant all on passbolt.* to passman@localhost identified by 'p@SSw0rd123';<\/code><\/pre>\n\n\n\n<p>Reload privileges tables and quit database;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>flush privileges;\nquit<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Clone Passbolt Github Repository to Apache Web Root Directory<\/h3>\n\n\n\n<p>Since we are going to install Passbolt from the source, you need to clone its Gtihub repository to your web root directory.<\/p>\n\n\n\n<p>In this tutorial, we are using <code><strong>\/var\/www\/passbolt<\/strong><\/code> as the web root directory.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>mkdir \/var\/www\/passbolt<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>git clone https:\/\/github.com\/passbolt\/passbolt_api.git \/var\/www\/passbolt<\/code><\/pre>\n\n\n\n<p>Since we are using Apache as the web server, you need to set the ownership (user and group) of the Passbolt web root directory to Apache user and group;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>chown -R www-data: \/var\/www\/<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Install Other Required dependencies and PHP modules\/extensions<\/h3>\n\n\n\n<p>To successfully install and run Passbolt, there are other tools and PHP extensions that are required. Run the command below to install them.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install composer gnupg2 git php7.3-{gnupg,intl,mbstring,gd,imagick,xml,common,curl,json,ldap} zlib1g<\/code><\/pre>\n\n\n\n<p>Navigate to Passbolt web root directory and install other required dependencies using <code>composer<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>cd \/var\/www\/passbolt<\/code><\/pre>\n\n\n\n<p>Run composer as the non privileged user. In this case, we use the owner of the Passbolt directory<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo -u www-data composer install --no-dev<\/code><\/pre>\n\n\n\n<p>During the installation, you are prompted on whether to adjust directories permissions. Accept and continue.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>&gt; App\\Console\\Installer::postInstall\nCreated `config\/app.php` file\nCreated `\/var\/www\/passbolt\/logs` directory\nCreated `\/var\/www\/passbolt\/tmp\/cache\/models` directory\nCreated `\/var\/www\/passbolt\/tmp\/cache\/persistent` directory\nCreated `\/var\/www\/passbolt\/tmp\/cache\/views` directory\nCreated `\/var\/www\/passbolt\/tmp\/sessions` directory\nCreated `\/var\/www\/passbolt\/tmp\/tests` directory\n<strong>Set Folder Permissions ? (Default to Y) [Y,n]? y<\/strong><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Generate OpenPGP Key for Authenticating JSON Requests<\/h3>\n\n\n\n<p>In order to authenticate and sign outgoing JSON requests, Passbolt API uses PGP keys. Therefore, run the command below to generate the keys;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>gpg --full-generate-key<\/code><\/pre>\n\n\n\n<p>When prompted for the passphrase, <strong>DO NOT<\/strong> set it. Just press ENTER and confirm that you don&#8217;t want to set it. Also, <strong>do not set the expiration date.<\/strong><\/p>\n\n\n\n<p>Replace <strong>YOUR_NAME<\/strong> and <strong>YOUR_EMAIL_ID<\/strong> with your name and email id.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Please select what kind of key you want:\n   (1) RSA and RSA (default)\n   (2) DSA and Elgamal\n   (3) DSA (sign only)\n   (4) RSA (sign only)\n  (14) Existing key from card\nYour selection? 1\nRSA keys may be between 1024 and 4096 bits long.\nWhat keysize do you want? (3072) 4096\nRequested keysize is 4096 bits\nPlease specify how long the key should be valid.\n         0 = key does not expire\n      &lt;n&gt;  = key expires in n days\n      &lt;n&gt;w = key expires in n weeks\n      &lt;n&gt;m = key expires in n months\n      &lt;n&gt;y = key expires in n years\nKey is valid for? (0) 0\nKey does not expire at all\nIs this correct? (y\/N) y\n\nGnuPG needs to construct a user ID to identify your key.\n\nReal name: YOUR_NAME\nEmail address: ENTER_YOUR_EMAIL_ID\nComment: \nYou selected this USER-ID:\n    \"YOUR_NAME &lt;YOUR_EMAIL_ID&gt;\"\n\nChange (N)ame, (C)omment, (E)mail or (O)kay\/(Q)uit? O\n...\ngpg: key 85EB40BA1D5DE890 marked as ultimately trusted\ngpg: revocation certificate stored as '\/root\/.gnupg\/openpgp-revocs.d\/C503E615618B34331BA1D26D85EB40BA1D5DE890.rev'\npublic and secret key created and signed.\n\npub   rsa4096 2020-07-15 &#91;SC]\n      C503E615618B34331BA1D26D85EB40BA1D5DE890\nuid                      YOUR_NAME &lt;YOUR_EMAIL_ID&gt;\nsub   rsa4096 2020-07-15 &#91;E]<\/code><\/pre>\n\n\n\n<p>Note the Key fingerprint and save it somewhere as it will be needed later in the setup.<\/p>\n\n\n\n<p>Export and store both public and private keys on Passbolt configuration directory.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>gpg --armor --export-secret-keys <strong>YOUR_EMAIL_ID<\/strong> &gt; \/var\/www\/passbolt\/config\/gpg\/serverkey_private.asc<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>gpg --armor --export <strong>YOUR_EMAIL_ID<\/strong> &gt; \/var\/www\/passbolt\/config\/gpg\/serverkey.asc<\/code><\/pre>\n\n\n\n<p>Next, initialize the gpg keyring for the Apache web server user so that Passbolt authentication can work.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo su -s \/bin\/bash -c \"gpg --list-keys\" www-data<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Configuring Passbolt on Ubuntu 20.04<\/h3>\n\n\n\n<p>Copy the sample Passbolt configuration file renaming it as follows;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>cp \/var\/www\/passbolt\/config\/passbolt{.default,}.php<\/code><\/pre>\n\n\n\n<p>Next, open the configuration file for modification;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>vim \/var\/www\/passbolt\/config\/passbolt.php<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Set the Application URL<\/h4>\n\n\n\n<p>Set the application url to the web address for your Passbolt app by replacing the value of the <code><strong>fullBaseUrl<\/strong><\/code> parameter appropriately.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>        \/\/ 'fullBaseUrl' =&gt; 'https:\/\/www.passbolt.test',\n<strong>        'fullBaseUrl' =&gt; 'https:\/\/passbolt.kifarunix-demo.com',<\/strong><\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Define Database Connection settings<\/h4>\n\n\n\n<p>Configure Passbolt database connection settings;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>    \/\/ Database configuration.\n    'Datasources' =&gt; [\n        'default' =&gt; [\n            'host' =&gt; '<strong>localhost<\/strong>',\n            \/\/'port' =&gt; 'non_standard_port_number',\n            'username' =&gt; '<strong>passman<\/strong>',\n            'password' =&gt; '<strong>p@SSw0rd123<\/strong>',\n            'database' =&gt; '<strong>passbolt<\/strong>',\n        ],\n    ],<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Configure Passbolt Email Settings<\/h4>\n\n\n\n<p>Configure Passbolt Email Server settings. We are using Gmail SMTP as our relay server.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>    \/\/ Email configuration.\n    'EmailTransport' =&gt; [\n        'default' =&gt; [\n<strong>            'host' =&gt; 'smtp.gmail.com',\n            'port' =&gt; 587,\n            'username' =&gt; 'username@gmail.com',\n            'password' =&gt; 'secretpassword',<\/strong>\n            \/\/ Is this a secure connection? true if yes, null if no.\n<strong>            'tls' =&gt; true,\n<\/strong>            \/\/'timeout' =&gt; 30,\n            \/\/'client' =&gt; null,\n            \/\/'url' =&gt; null,\n        ],\n    ],\n    'Email' =&gt; [\n        'default' =&gt; [\n            \/\/ Defines the default name and email of the sender of the emails.\n<strong>            'from' =&gt; ['passbolt@kifarunix-demo.com' =&gt; 'Kifarunix-demo Passbolt'],\n<\/strong>            \/\/'charset' =&gt; 'utf-8',\n            \/\/'headerCharset' =&gt; 'utf-8',\n        ],\n    ],<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Specify the GPG key fingerprint<\/h4>\n\n\n\n<p>Extract the GPG key fingerprint and set it as the value of the <code>fingerprint<\/code> parameter.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>gpg --list-keys --fingerprint | grep -i -B 2 <strong>YOUR_EMAIL_ID<\/strong> <\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>pub   rsa4096 2020-07-15 [SC]\n<strong>      C503 E615 618B 3433 1BA1  D26D 85EB 40BA 1D5D E890\n<\/strong>uid           [ultimate] &lt;YOUR_NAME&gt; &lt;YOUR_EMAIL_ID&gt;\nsub   rsa4096 2020-07-15 [E]<\/code><\/pre>\n\n\n\n<p>Copy the highlighted string and remove spaces and paste it as the value of the <code>fingerprint<\/code> parameter. Also, uncomment the public and private lines below the fingerprint by removing the two forward slashes at the beginning of those lines;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>...\n            'serverKey' =&gt; [\n                \/\/ Server private key fingerprint.\n                'fingerprint' =&gt; '<strong>C503E615618B34331BA1D26D85EB40BA1D5DE890<\/strong>',\n                <strong>'public' =&gt; CONFIG . 'gpg' . DS . 'serverkey.asc',\n                'private' =&gt; CONFIG . 'gpg' . DS . 'serverkey_private.asc',\n            ],<\/strong><\/code><\/pre>\n\n\n\n<p>Save and exit the configuration file.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Create Apache VirtualHost Configuration for Passbolt and Enable HTTPS<\/h3>\n\n\n\n<p>Next, create a dedicated Apache virtual host configuration file for Passbolt.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>vim \/etc\/apache2\/sites-available\/passbolt.conf <\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;VirtualHost *:80&gt;\n\n        ServerAdmin passbolt.kifarunix-demo.com\n        DocumentRoot \/var\/www\/passbolt\n\n\tRedirect \/ https:\/\/passbolt.kifarunix-demo.com\n&lt;\/VirtualHost&gt;\n#SSLStaplingCache \"shmcb:logs\/stapling-cache(150000)\"\nServerSignature Off\nServerTokens Prod\n&lt;VirtualHost _default_:443&gt;\n        ServerAdmin passbolt.kifarunix-demo.com\n        DocumentRoot \/var\/www\/passbolt\n\n\n        ErrorLog ${APACHE_LOG_DIR}\/passbolt_error.log\n        CustomLog ${APACHE_LOG_DIR}\/passbolt_access.log combined\n\n\n        SSLEngine on\n        SSLCertificateFile      \/etc\/ssl\/certs\/ssl-cert-passbolt.pem\n        SSLCertificateKeyFile \/etc\/ssl\/private\/ssl-cert-passbolt.key\n        SSLCACertificateFile \/etc\/ssl\/private\/ssl-cacert-passbolt.pem\n\n        SSLCipherSuite EECDH+AESGCM:EDH+AESGCM\n        SSLProtocol -all +TLSv1.3 +TLSv1.2\n        SSLOpenSSLConfCmd Curves X25519:secp521r1:secp384r1:prime256v1\n        SSLHonorCipherOrder On\n        Header always set Strict-Transport-Security \"max-age=63072000; includeSubDomains; preload\"\n        Header always set X-Frame-Options DENY\n        Header always set X-Content-Type-Options nosniff\n        SSLCompression off\n        #SSLUseStapling on\n        SSLSessionTickets Off\n\n\t&lt;Directory \/var\/www\/passbolt\/&gt;\n  \t\tOptions FollowSymLinks MultiViews\n  \t\tAllowOverride All\n\t\tRequire all granted\n\t&lt;\/Directory&gt;\n\n\n        &lt;FilesMatch \"\\.(cgi|shtml|phtml|php)$\"&gt;\n                        SSLOptions +StdEnvVars\n        &lt;\/FilesMatch&gt;\n        &lt;Directory \/usr\/lib\/cgi-bin&gt;\n                        SSLOptions +StdEnvVars\n        &lt;\/Directory&gt;\n\n&lt;\/VirtualHost&gt;<\/code><\/pre>\n\n\n\n<p>Save and exit the configuration file.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Generate TLS certificates<\/h4>\n\n\n\n<p>If you noticed, we enabled HTTP &gt; HTTPS redirection in our configuration. <\/p>\n\n\n\n<p>Obtain your commercially trusted CA certificates and install them  on the directories specified on the Apache configuration.<\/p>\n\n\n\n<p>Disable Apache default site;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>a2dissite 000-default.conf<\/code><\/pre>\n\n\n\n<p>Enable Passbolt site;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>a2ensite passbolt.conf<\/code><\/pre>\n\n\n\n<p>Enable Apache <strong><code>rewrite<\/code><\/strong>, <strong><code>ssl<\/code><\/strong>, <code><strong>headers<\/strong><\/code> module;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>a2enmod rewrite ssl headers<\/code><\/pre>\n\n\n\n<p>Run Apache configuration syntax check.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apachectl -t<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>Syntax OK<\/code><\/pre>\n\n\n\n<p>If there is no issue, proceed to restart Apache;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl restart apache2<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">&nbsp;Run the Passbolt Install Script<\/h3>\n\n\n\n<p>Next, execute the Passbolt install script.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>cd \/var\/www\/passbolt<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo su -s \/bin\/bash -c \".\/bin\/cake passbolt install --no-admin\" www-data<\/code><\/pre>\n\n\n\n<p>By default, when script is run, it prompts you to create an administrative user. We disabled that by adding the <code>--no-admin<\/code> option. We will create the admin account later.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>All Done. Took 111.3186s\n\nImport the server private key in the keyring\n---------------------------------------------------------------\nImporting \/var\/www\/passbolt\/config\/gpg\/serverkey_private.asc\nKeyring init OK\n\nPassbolt installation success! Enjoy! \u262e<\/code><\/pre>\n\n\n\n<p>Run health check to verify that all is Okay.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>cd \/var\/www\/passbolt\nsudo su -s \/bin\/bash -c \".\/bin\/cake passbolt healthcheck\" www-data<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>...\n Application configuration\n\n [PASS] Using latest passbolt version (2.13.1).\n [PASS] Passbolt is configured to force SSL use.\n [PASS] App.fullBaseUrl is set to HTTPS.\n [PASS] Selenium API endpoints are disabled.\n [PASS] Search engine robots are told not to index content.\n [PASS] Registration is closed, only administrators can add users.\n [PASS] Serving the compiled version of the javascript app\n [PASS] All email notifications will be sent.\n\n<strong> No error found. Nice one sparky!<\/strong><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Finalize Passbolt Setup from Browser<\/h3>\n\n\n\n<p>You can now finalize the Passbolt setup from browser by following the address <code>https:\/\/&lt;passbolt-server-hostname&gt;<\/code>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1915\" height=\"974\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/download-passbolt-browser_plugin.png\" alt=\"Install and Setup Passbolt Password Manager on Ubuntu 20.04\" class=\"wp-image-6459\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/download-passbolt-browser_plugin.png?v=1594919282 1915w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/download-passbolt-browser_plugin-768x391.png?v=1594919282 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/download-passbolt-browser_plugin-1536x781.png?v=1594919282 1536w\" sizes=\"(max-width: 1915px) 100vw, 1915px\" \/><\/figure>\n\n\n\n<p>Download and install plugin for your specific browser, in this demo, we using Firefox. Therefore, click on <strong>Download the plugin<\/strong> to download and install Passbolt Firefox add-on extension.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Create Passbolt Administrative User<\/h4>\n\n\n\n<p>You can now create Passbolt admin user using the <code>.\/bin\/cake passbolt register_user<\/code> command. Below is the command line options for this command;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>cd \/var\/www\/passbolt<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>.\/bin\/cake passbolt register_user --help<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>     ____                  __          ____  \n    \/ __ \\____  _____ ____\/ \/_  ____  \/ \/ \/_ \n   \/ \/_\/ \/ __ `\/ ___\/ ___\/ __ \\\/ __ \\\/ \/ __\/ \n  \/ ____\/ \/_\/ (__  |__  ) \/_\/ \/ \/_\/ \/ \/ \/    \n \/_\/    \\__,_\/____\/____\/_.___\/\\____\/_\/\\__\/   \n\n Open source password manager for teams\n---------------------------------------------------------------\nRegister a new user.\n\nUsage:\ncake passbolt register_user &#91;options]\n\nOptions:\n\n--first-name, -f        The user first name\n--help, -h              Display this help.\n--interactive, -i       Enable interactive mode\n--interactive-loop      Enable interactive mode (default:\n                        3)\n--last-name, -l         The user last name\n--quiet, -q             Enable quiet output.\n--role, -r              The User role, such as \"admin\" or \"user\"\n--username, -u          The user email aka username\n--verbose, -v           Enable verbose output.<\/code><\/pre>\n\n\n\n<p>So let us create an admin user;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>cd \/var\/www\/passbolt<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo su -s \/bin\/bash -c \".\/bin\/cake passbolt register_user -u admin@kifarunix-demo.com -f Kifarunix -l Demo -r admin\" www-data<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>     ____                  __          ____  \n    \/ __ \\____  _____ ____\/ \/_  ____  \/ \/ \/_ \n   \/ \/_\/ \/ __ `\/ ___\/ ___\/ __ \\\/ __ \\\/ \/ __\/ \n  \/ ____\/ \/_\/ (__  |__  ) \/_\/ \/ \/_\/ \/ \/ \/    \n \/_\/    \\__,_\/____\/____\/_.___\/\\____\/_\/\\__\/   \n\n Open source password manager for teams\n---------------------------------------------------------------\nUser saved successfully.\nTo start registration follow the link provided in your mailbox or here: \nhttps:\/\/passbolt.kifarunix-demo.com\/setup\/install\/d4273b45-2728-4538-863a-ff7e58260a0f\/42221ac3-0205-415a-85b2-c8271f8742f7<\/code><\/pre>\n\n\n\n<p>Copy the link provided upon user registration and use it to finalize the setup of Passbolt on browser.<\/p>\n\n\n\n<p>The link takes you to Welcome page to finalize on the Passbolt setup. <strong>If you get a blank page after loading Passbolt URL, then it means you have not installed the Passbolt browser extension<\/strong>.<\/p>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/welcome-to-passbolt-check-plugin.png\" class=\"td-modal-image\"><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1220\" height=\"795\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/welcome-to-passbolt-check-plugin.png\" alt=\"Check Passbolt browser plugin\" class=\"wp-image-6461\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/welcome-to-passbolt-check-plugin.png?v=1594919490 1220w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/welcome-to-passbolt-check-plugin-768x500.png?v=1594919490 768w\" sizes=\"(max-width: 1220px) 100vw, 1220px\" \/><\/figure><\/a><\/div>\n\n\n\n<p>Confirm that the URL and GPG key fingerprint are okay and click <strong>Next<\/strong> to proceed with setup. In the next step, you are required to generate the key. However, simply click <strong>import<\/strong> to import the existing keys.<\/p>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/import-passbolt-keys.png\" class=\"td-modal-image\"><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1546\" height=\"606\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/import-passbolt-keys.png\" alt=\"\" class=\"wp-image-6462\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/import-passbolt-keys.png?v=1594919530 1546w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/import-passbolt-keys-768x301.png?v=1594919530 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/import-passbolt-keys-1536x602.png?v=1594919530 1536w\" sizes=\"(max-width: 1546px) 100vw, 1546px\" \/><\/figure><\/a><\/div>\n\n\n\n<p>Set a complex passphrase that you can easily remember for protecting you secret key.<\/p>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/set-passbolt-passphrase.png\" class=\"td-modal-image\"><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1267\" height=\"636\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/set-passbolt-passphrase.png\" alt=\"Install and Setup Passbolt Password Manager on Ubuntu 20.04\" class=\"wp-image-6463\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/set-passbolt-passphrase.png?v=1594919603 1267w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/set-passbolt-passphrase-768x386.png?v=1594919603 768w\" sizes=\"(max-width: 1267px) 100vw, 1267px\" \/><\/figure><\/a><\/div>\n\n\n\n<p>Your secret key is now generated and encrypted with your passphrase and it is stored in your Passbolt add-on. Ensure that you make a copy of this key by downloading it and storing it in a different location.<\/p>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/make-key-backup.png\" class=\"td-modal-image\"><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1749\" height=\"587\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/make-key-backup.png\" alt=\"Install and Setup Passbolt Password Manager on Ubuntu 20.04\" class=\"wp-image-6464\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/make-key-backup.png?v=1594919620 1749w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/make-key-backup-768x258.png?v=1594919620 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/make-key-backup-1536x516.png?v=1594919620 1536w\" sizes=\"(max-width: 1749px) 100vw, 1749px\" \/><\/figure><\/a><\/div>\n\n\n\n<p>Generate your security token.<\/p>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/choose-security-token.png\" class=\"td-modal-image\"><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1743\" height=\"561\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/choose-security-token.png\" alt=\"Install and Setup Passbolt Password Manager on Ubuntu 20.04\" class=\"wp-image-6465\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/choose-security-token.png?v=1594919709 1743w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/choose-security-token-768x247.png?v=1594919709 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/choose-security-token-1536x494.png?v=1594919709 1536w\" sizes=\"(max-width: 1743px) 100vw, 1743px\" \/><\/figure><\/a><\/div>\n\n\n\n<p>You have now successfully set up your Passbolt. Click Next to get to the Login page.<\/p>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/passbolt-login-page.png\" class=\"td-modal-image\"><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1519\" height=\"768\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/passbolt-login-page.png\" alt=\"\" class=\"wp-image-6466\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/passbolt-login-page.png?v=1594919755 1519w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/passbolt-login-page-768x388.png?v=1594919755 768w\" sizes=\"(max-width: 1519px) 100vw, 1519px\" \/><\/figure><\/a><\/div>\n\n\n\n<p>And there you go.<\/p>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/passbolt-dashboard.png\" class=\"td-modal-image\"><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1906\" height=\"485\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/passbolt-dashboard.png\" alt=\"\" class=\"wp-image-6467\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/passbolt-dashboard.png?v=1594919779 1906w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/passbolt-dashboard-768x195.png?v=1594919779 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/07\/passbolt-dashboard-1536x391.png?v=1594919779 1536w\" sizes=\"(max-width: 1906px) 100vw, 1906px\" \/><\/figure><\/a><\/div>\n\n\n\n<p>You can now start using Passbolt to store passwords\/share them as you wish.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Configure Passbolt to Sent Emails<\/h3>\n\n\n\n<p>Last but not least, you can now configure Passbolt to be able to sent email notifications on new password creation, sharing, modification etc.<\/p>\n\n\n\n<p>Before this, ensure that you have configured Passbolt email settings.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>cd \/var\/www\/passbolt<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>.\/bin\/cake EmailQueue.sender<\/code><\/pre>\n\n\n\n<p>When you run the above, you should be able to receive emails on activating your account as well as welcoming you to Passbolt.<\/p>\n\n\n\n<p>Create a cron job to execute this script to have the emails sent automatically.<\/p>\n\n\n\n<p>Install the cron jobs as Apache Web server user, &nbsp;<code><strong>www-data<\/strong><\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>crontab -u www-data -e<\/code><\/pre>\n\n\n\n<p>Create a cron job that runs all the time.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code><strong>*<\/strong> <strong>*<\/strong> <strong>*<\/strong> <strong>*<\/strong> <strong>*<\/strong> \/var\/www\/passbolt\/bin\/cake EmailQueue.sender <strong>&gt;&gt;<\/strong> \/var\/log\/passbolt-mails.log<\/code><\/pre>\n\n\n\n<p>Save and exit the cron jobs file.<\/p>\n\n\n\n<p>You can list installed cronjobs;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>crontab -u www-data -l<\/code><\/pre>\n\n\n\n<p>Your Passbolt password manager is now ready.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Reference<\/h3>\n\n\n\n<p><a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/help.passbolt.com\/hosting\/install\/ce\/from-source.html\" target=\"_blank\" rel=\"noreferrer noopener\">Install Passbolt from source<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Related Tutorials<\/h3>\n\n\n\n<p><a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-syspass-password-manager-on-ubuntu-18-04\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install sysPass Password Manager on Ubuntu 18.04<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-teampass-password-manager-on-ubuntu-18-04\/\" target=\"_blank\" aria-label=\"undefined (opens in a new tab)\" rel=\"noreferrer noopener\">Install TeamPass Password Manager on Ubuntu 18.04<\/a><\/p>\n\n\n\n<p><a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/enforce-password-complexity-policy-on-ubuntu-18-04\/\" target=\"_blank\" rel=\"noreferrer noopener\">Enforce Password Complexity Policy On Ubuntu 18.04<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/setup-ldap-self-service-password-tool-on-centos-8\/\" target=\"_blank\" aria-label=\"undefined (opens in a new tab)\" rel=\"noreferrer noopener\">Setup LDAP Self Service Password Tool on CentOS 8<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you will learn how to install and setup Passbolt password manager on Ubuntu 20.04. Passbolt is is a free, open source, self-hosted,<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121,339,352,34],"tags":[1820,1822,1107,1818,1819,341,1821,1200],"class_list":["post-6379","post","type-post","status-publish","format-standard","hentry","category-howtos","category-password-managers","category-password-policies","category-security","tag-install-passbolt-on-ubuntu-20-04","tag-installing-passbolt-on-ubuntu","tag-linux","tag-passbolt","tag-passbolt-password-manager","tag-password-manager","tag-setup-password-on-ubuntu-20-04","tag-ubuntu-20-04","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/6379"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=6379"}],"version-history":[{"count":18,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/6379\/revisions"}],"predecessor-version":[{"id":21447,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/6379\/revisions\/21447"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=6379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=6379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=6379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}