How to Restrict SFTP Users to Home Directories Using chroot Jail

Create or Modify Users and Groups Let us restrict the existing user, for example asifnew, to his/her home directory named /home/asifnew. For this, you need to create a new sftpgroup group using groupadd command as shown: # groupadd sftpgroup You can also create a new user using useradd command, for example asifnew and assign the user to sftpusers group. # adduser asifnew -g sftpgroup -s […]

How to Install and Configure FTP Server in Ubuntu

In this tutorial, we will show how to install, configure and secure a FTP server (VSFTPD in full “Very Secure FTP Daemon“) in Ubuntu to have a powerful security against FTP vulnerabilities. Step 1: Installing VsFTP Server in Ubuntu 1. First, we need to update the system package sources list and then install VSFTPD binary package as follows: $ sudo apt-get update $ […]

How-to: cPanel to Directadmin migration

To increase it in DA to 16, for example, you can simply run:Code: /usr/local/directadmin/directadmin set max_username_length 16 restart * To make sure your MySQL username/database name is fine, I’d suggest upgrading your MySQL/MariaDB on the server (https://www.directadmin.com/features.php?id=2294), MySQL 5.7+ or MariaDB 10.x is recommended.* I’d suggest trying it with 1 account first, most preferably – the one […]

Installing an SSL certificate for your hostname using LetsEncrypt in directadmin

cd /usr/local/directadmin/scripts./letsencrypt.sh request_single your.hostname.com 4096which will also install the new cert/key/ca files in all respective global places for apache, dovecot, exim, ftp, and DirectAdmin.NOTE The hostname value, eg: your.hostname.com must match the “servername” value set in the directadmin.conf, or it will not be in hostname mode, but User domain mode instead. You must then turn on SSL in DA and […]

Automatically setup LetsEncrypt SSL for *all* domains that do not currently have a certificate in directadmin

The new LetsEncrypt feature is a great way to easily secure your website connections at no cost.  If you already have many website that you want to secure all at once, you can use the autoletsencrypt.sh script to do this. Make sure you’ve already enabled LetsEncrypt on the system: Then you can install certificate for all domains:cd […]

How to make DirectAdmin listen on port 2082 for HTTP requests and port 2083 for HTTPs

A: Just set the following settings in /usr/local/directadmin/conf/directadmin.conf and restart DirectAdmin:Code: port=2082 ssl_port=2083 If you would like to let customers use just the SSL on port 2083, set:Code: ssl=1 port=2083 Related: https://help.directadmin.com/item.php?id=2101

How to upgrade mariadb or mysql in directadmin

To upgrade  MariaDB using the custombuild script, do the following: cd /usr/local/directadmin/custombuild./build set mariadb 10.3./build set mysql_inst mariadb./build set mysql_backup yes./build update./build mariadb ./build php n Where mariadb can be 5.5, 10.0, 10.1, 10.2 or 10.3 A full raw sql backup will be run prior to the upgrade if you have mysql_backup=yes set.  It goes without saying, always make backups, either […]

How To Set Or Change A Hostname In CentOS 7

A hostname is simply the name a server goes by on the network. Setting a unique hostname is an excellent way to quickly find and identified different servers on your network. There are three 3 types of hostnames. The static hostname is the most important one, and it’s stored in the /etc/hostname file. This hostname is used among machines to identify […]