Systemd – run a script before system shutdown

Here systemd will execute /srv/app_shutdown_script.sh before the system reboots. Refer to the following steps. Create a systemd Unit file with the following content. # cat /etc/systemd/system/exec-before-shutdown.service [Unit] Description=Shutdown run script…

Read more »

logrorate: error: lines must begin with a keyword or a filename (possibly in double quotes)

Logrotate command returns the following error: # logrotate -vf /etc/logrotate.d/mylog reading config file mylog reading config info for /var/log/mylog.log error: iptables:1 lines must begin with a keyword or a filename…

Read more »
Linux Wifi Router

Configure a Linux system as a wifi router or hotspot

This article provide a simple and precise steps to create a Wi-Fi Hotspot or router on Ubuntu / Debian / Fedora / CentOS / RHEL/ Arch Linux system using nmcli…

Read more »

sudo log configuration on Linux

Enabling sudo log helps system administrators to track the activities of sudo users and this helps in system auditing. sudo logging logs all sudo commands executed on Linux system. This... Read more »
Linux sudo-io

sudo-io configuration on Linux

sudo-io is needed to log all sudo commands executed on Linux system with the command input and output stream. This article provides a step by step instruction to configure sudo-io... Read more »
Rsync Chroot Jail

Rsync on ssh chroot jail

Using OpenSSH you can bind SSH, SFTP, SCP or RSYNC users to their home directory and restrict them to access other directories on the SSH server. In this article we…

Read more »
Chroot scp

SCP on chroot ssh jail

Using OpenSSH you can bind SSH, SFTP, SCP users to their home directory and restrict them to access other directories on the SSH server. In this article we will configure…

Read more »
Chroot SFTP

SFTP on chroot SSH jail

Using OpenSSH you can bind SSH, SFTP, SCP users to their home directory and restrict them to access other directories on the SSH server. In this article we will configure…

Read more »
Chroot SSH

Chroot SSH Configuration on Linux|RHEL|CentOS

Using OpenSSH you can bind SSH or SFTP users to their home directory and restrict them to access other directories on the SSH server. In this article we will demonstrate…

Read more »
SFTP

How to setup passwordless chroot SFTP on Linux

This article describes a step by step procedure to set up password-less chroot SFTP login between a source and destination system.

Read more »