journalctl -u dovecot -g "auth failed"
Wednesday, May 20, 2026
Linux command to find user who failed to login from pop/imap
Thursday, March 30, 2023
How to set up VSFTPD Server and FTP Account in AlmaLinux
sudo dnf install vsftpd
sudo mv /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd.conf_original
sudo vi /etc/vsftpd/vsftpd.conf
Add the following code to vsftpd.conf:
-------------------------------
anonymous_enable=NOconnect_from_port_20=YES
dirmessage_enable=YES
local_enable=YES
local_umask=022
listen=NO
listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=YES
write_enable=YES
xferlog_enable=YES
xferlog_std_format=YES
-------------------------------
cat /etc/vsftpd/vsftpd.conf
sudo firewall-cmd --zone=public --add-service=ftp --permanent
sudo firewall-cmd --reload
sudo systemctl restart vsftpd
sudo useradd -m testftpuser
sudo passwd testftpuser
sudo bash -c "echo TO CHECK WORKING OF FTP > /home/baycombd/FTP_CHECK"
chown -R testftpuser /home/testftpuser
Note: Up to this user can access FTP files via ftp client application like FileZilla
Monday, August 29, 2022
How to install NGINX and configure on Ubuntu 20.04
sudo apt-get update
sudo apt upgrade
sudo apt install nginx
sudo systemctl status nginx
sudo ufw allow http
sudo ufw reload
sudo systemctl status nginx
sudo systemctl stop nginx
sudo systemctl start nginx
sudo systemctl disable nginx
sudo systemctl enable nginx
sudo systemctl restart nginx
sudo systemctl reload nginx
sudo unlink /etc/nginx/sites-enabled/default
sudo ln -s /etc/nginx/sites-available/example.com /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl restart nginx
sudo mkdir /var/www/example.com
How to unzip tar.gz file in linux
sudo apt-get install zip
unzip file.zip -d destination_folderunzip file.zip
tar -xf archive.tar.gz
Tuesday, March 15, 2022
How to restore a Large cPanel Backup file from Google Drive
wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILEID' -O- | sed -rn 's/.confirm=([0-9A-Za-z_]+)./\1\n/p')&id=FILEID" -O FILENAME && rm -rf /tmp/cookies.txt
Download Large File from Google Drive to Linux Directory using command
First install yum if not installed before : sudo yum install wget
Before the file to be downloaded it is needed to be share publicly.
Steps:
- Select a file that is need to be downloaded and do right click.
- Click Share. A dialog box will appear.
- Click Advance in the right bottom corner.
- Click on the Change.. under who has access.
- Make it On- Public on the web.
- Click Save button.
- Copy the link for sharing…like…https://drive.google.com/file/d/1UibyVC_C2hoT_XEw15gPEwPW4yFyJFeOEA/view?usp=sharing
- Extrac FILEID part like….from above….1UibyVC_C2hoT_XEw15gPEwPW4yFyJFeOEA
For small file run following command on your terminal:
wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILEID' -O FILENAME
In the above command change the FILEID by above id extracted and rename FILENAME for your own simple use.
Large files
For large file run the following command with necessary changes in FILEID and FILENAME:
wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILEID' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=FILEID" -O FILENAME && rm -rf /tmp/cookies.txt
How to composer in cPanel using terminal Terminal
At first, be sure that your cPanel has terminal access. Step-1 mkdir -p ~/bin cd ~ php -r "copy('https://getcomposer.org/installer...
-
We can install PowerMTA on the server. rpm -ivh /home/PowerMTA-4.0r6.x86_64.rpm You will see the output like this Preparing... #############...
-
Instructions: Copy xf-adesk19 to your Desktop Open terminal (Command+Space and type Terminal and press enter/return key) Paste the followin...
-
Put the following code in a TXT file and save as "file.cmd" then run the cmd file as administrator. @echo off title Activate Micr...
