How to Change epproot Password and Optimize Endpoint Protector On-Prem Appliance
| The procedures and instructions provided in this document are intended for use by experienced administrators. Proceeding with these steps is done entirely at your own risk. Netwrix is not responsible for any data loss, system instability, or other issues that may arise from following these instructions. Ensure that you have a complete backup of your system before making any changes. |
|---|
Overview
This article outlines the steps to boot the Endpoint Protector (EPP) On-Prem appliance into single-user (recovery) mode to change the epproot user password and optimize appliance performance. These steps apply only to on-premises deployments.
They do not work for appliances hosted in cloud environments.
Instructions
-
Go to your VM manager and reboot the EPP appliance.
While it reboots, press theEsckey on your keyboard to access the GRUB boot menu, and select Advanced options for Ubuntu. -
Choose the first entry labeled (recovery mode).
-
Press Enter when prompted.
-
Change the password for the
epprootuser using the command:passwd epprootNOTE: When requested, input the new password.
-
Reboot the appliance with the command:
reboot -
Once the system restarts, connect to the appliance via SSH using your preferred application.
-
To reduce the number of password prompts, elevate privileges to root using:
sudo suNOTE: When requested, use the password for the
epprootuser. -
Backup the Nginx, MySQL, and PHP-FPM configuration files:
cp -p /etc/nginx/nginx.conf{,.bkp}
cp -p /etc/mysql/mysql.conf.d/mysqld.cnf{,.bkp}
cp -p /opt/alt/php56/etc/php-fpm.conf{,.bkp}NOTE: The
{,.bkp}syntax creates a copy of each file in the same location with.bkpappended, preserving metadata (permissions, ownership, and timestamps). -
Run the following command and note down the number of CPU cores and the memory assigned to the VM:
htop -
Edit the Nginx configuration file:
vim /etc/nginx/nginx.conf- Press Insert to edit.
- Set
worker_processesto the number of CPU cores. - Change the values of
error_logandaccess_logfromoffto/dev/null. - To save and quit, press Esc, type
:wq, and press Enter.
-
Edit the MySQL configuration file:
vim /etc/mysql/mysql.conf.d/mysqld.cnf-
Press Insert to edit.
-
Ensure or update the following parameters:
max_allowed_packet = 8M
thread_stack = 256K
read_buffer_size = 128K
read_rnd_buffer_size = 256K
join_buffer_size = 128K
key_buffer_size = 16M
tmp_table_size = 256M
sort_buffer_size = 2M
thread_cache_size = 64M
query_cache_type = 0
query_cache_limit = 1M
query_cache_size = 0
transaction_isolation = READ-COMMITTED
expire_logs_days = 5
max_binlog_size = 128M -
Adjust
max_connectionsbased on system memory:RAM max_connections ≤4 GB 75 8 GB 100 16 GB 150 32 GB 250 64 GB 500 128 GB 1000 -
Set
innodb_buffer_pool_sizeto ~60% of total memory.
Example (72 GB RAM):innodb_buffer_pool_size = 44236M -
Set
innodb_log_file_sizeto ~12.5% of the buffer pool size.
Example (72 GB RAM):innodb_log_file_size = 5G -
Set
innodb_buffer_pool_instancesto the approximate number of gigabytes of buffer pool size.
Example:innodb_buffer_pool_instances = 43 -
Set
innodb_thread_concurrencyto the number of CPU cores.
Example (8 cores):innodb_thread_concurrency = 8 -
Ensure the following parameters exist or add them if missing:
innodb_file_per_table = 1
innodb_flush_log_at_trx_commit = 0
innodb_log_buffer_size = 16M
innodb_lock_wait_timeout = 300
innodb_flush_method = O_DIRECT
innodb_autoinc_lock_mode = 1
innodb_fast_shutdown = 1
innodb_max_purge_lag = 0
innodb_max_dirty_pages_pct = 60 -
To save and quit, press Esc, type
:wq, and press Enter.
-
-
Edit the PHP-FPM configuration file:
vim /opt/alt/php56/etc/php-fpm.conf-
Press Insert to edit.
-
Update the following parameters based on total RAM:
Total RAM pm.max_children pm.start_servers pm.min_spare_servers pm.max_spare_servers ≤2 GB 10 5 1 5 ≤4 GB 50 6 3 8 ≤8 GB 100 8 5 12 ≤16 GB 200 12 8 20 ≤32 GB 400 20 12 40 ≤64 GB 800 28 18 70 ≤128 GB 1600 40 28 100 >128 GB Scale using the formula, then round down ~10–15% — — — -
To save and quit, press Esc, type
:wq, and press Enter.
-
-
Restart the services:
systemctl restart nginx
systemctl restart mysql
systemctl restart alt-php56-fpm -
If any of the services fail to start, review the relevant configuration files for errors.
NOTE: You can restore the backup files created in Step 8 if necessary.