Category

System Administration Guides and Best Practices

Learn system administration with practical guides on user management, services, monitoring, and Linux server management.

The System Administration section focuses on managing and maintaining Linux systems efficiently.

These tutorials cover identity and access, remote administration, file services, install-time networking, monitoring, and day-two operations on production servers.

Browse the articles below for step-by-step administration guides and best practices.

You can also explore Linux and Networking for deeper insights.

107 articles

System administration category illustration with server rack, services, and monitoring graphics
system-administration

2 ways to update and rebuild initrd image in CentOS/RHEL 7 and 8

Steps to extract, modify, update and rebuild initrd image in CentOS RHEL 7 and 8 ISO DVD with examples using XZ / LZMA format Update initrd with modules drivers

Deepak Prasad10 min read
system-administration

Configure secure logging with rsyslog TLS to remote log server (CentOS/RHEL

Configure secure logging to remote log server with rsyslog TLS certificates in CentOS/RHEL 7 Forward syslog to remote log server securely using TLS certificates

Deepak Prasad16 min read
system-administration

How to transfer files over SSH with SSHFS in Linux & Windows

Step-by-Step Tutorial to transfer files over SSH using SSHFS between two Linux servers or Linux and WIndows server. Copy files between linux and windows using sshfs

Deepak Prasad6 min read
system-administration

Linux copy directory and contents from remote to local & vice versa

Rsync and SCP recursive examples to copy directory and contents. scp from local to remote server and scp from remote to local. copy file from ssh to local or local to ssh server

Deepak Prasad13 min read
system-administration

Capture ssh & sshd strace logs

Step by Step instructions to capture SSH and SSHD strace logs with DEBUG and VERBOSE. Add timestamps to SSH and SSHD debug and strace logs

Deepak Prasad12 min read
system-administration

Add timestamp to SSH verbose logs [STDOUT & Log File]

Execute SSH and add timestamp to SSH verbose logs. Store the verbose logs into a log file and add timestamp prefix to each entry of log file with while loop

Deepak Prasad4 min read
system-administration

SOLVED: SSH fails with postponed publickey error

[Solved} Steps to debug and fix postponed publickey error leading to SSH connection failure. You may also get ROOT LOGIN REFUSED, Failed pubkey, permission issues with SSH

Deepak Prasad7 min read
system-administration

Beginners guide to mount NFS share in Linux with examples

Step by step instructions to mount and unmount NFS share in Linux with examples. How to fix umount.nfs4:: device is busy

Deepak Prasad7 min read
system-administration

SOLVED: Run SSHD as non-root user (without sudo) in Linux

In this tutorial I will share the step by step instructions to run SSHD as non- root user in Linux platform. The same steps can be used for non privileged docker container pods and kubernetes

Deepak Prasad12 min read
system-administration

Configure Thin Provision LVM using kickstart with example in CentOS/RHEL 7/8

Configure thin provision lvm using kickstart and PXE server in CentOS/RHEL 7 and 8 Linux with examples. Define custom chunksize and metadata to create thinpool

Deepak Prasad5 min read
system-administration

[SOLVED] Restrict FTP user to a directory in Linux

Use chroot_local_user to restrict FTP user to a directory in vsftpd.conf in Linux. You can specify the directory name and path which acts as home directory for chroot

Omer Cakmak6 min read
system-administration

NFS mount options | NFS exports options | Beginners Guide

Linux NFS mount options example, Linux NFS exports options, root_squash vs no_root_squash, hard mount vs soft mount, Unix NFS performance. NFS mount options fstab

Deepak Prasad14 min read
system-administration

What are GRUB Files in Linux? [In-Depth Tutorial]

Grub files, also known as GRand Unified Bootloader, are essential components in the Linux operating system that facilitate the booting process. Grub files are

Deepak Prasad14 min read
system-administration

Configure postfix mail server and client with examples (CentOS/RHEL 7/8)

Configure postfix mail server and client using SMTP relay server. Check SMTP server configuration and connection with SWAKS. SMTP Mail Server CentOS/RHEL 7/8

Deepak Prasad17 min read
system-administration

Integrate Samba with Active Directory (Linux & Windows)

To integrate Samba share with Active Directory we can use winbind to join Linux client with domain controller and use smbclient to access the windows share

Deepak Prasad8 min read
system-administration

3 easy steps to configure gmail smtp relay with postfix

Step by step tutorial to configure postfix using third party gmail smtp relay to send mails to external network. Use SASL with Google 2-Step Authentication

Deepak Prasad7 min read
system-administration

Install & configure FreeIPA Server & Client (RHEL/CentOS 7)

Step by Step guide tutorial on how to install and configure FreeIPA, ipa server LDAP, kerberos, DNS and IPA client on RHEL/CentOS 7 Linux with GUI and CLI

Deepak Prasad12 min read
system-administration

Create KVM virtual machine | virt-manager | RHEL CentOS 8

Step-by-Step Guide to create KVM Virtual Machine using Virtual Manager in RHEL and CentOS 8 Linux. Create VM, Take Snapshot, Assign Networks using Virtual manager GUI

Deepak Prasad6 min read
system-administration

3 simple and useful tools to grep multiple strings in Linux

How to grep multiple strings and patterns in single line from a file in Linux or Unix? Is it possible to grep multiple strings using single command from a file?

Deepak Prasad10 min read
system-administration

How to install Oracle Virtual Box on Linux (CentOS / RHEL 7)

Step by step Guide to install Oracle Virtual Box on RHEL / CentOS 7 Linux. To install Oracle Virtual Box you need EPEL repo. Oracle Virtual 5.2 is out now

Deepak Prasad3 min read
system-administration

How to enable SSH access & configure network in rescue mode (CentOS/RHEL

Steps to enable SSH access in linux rescue mode and configure network in rescue mode in RHEL/CentOS 7/8 with example transfer sosreport file inst.sshd=1

Deepak Prasad4 min read
system-administration

Found a swap file by the name .XXX.swp

What is .swp file? Why this file is created? How to get rid of Found a swap file by the name warning? Another program may be editing the same file. An edit session for this file crashed

Deepak Prasad8 min read
system-administration

How to disconnect idle ssh session or keep idle ssh session active in Linux

How to disconnect idle ssh session in Linux using ClientAliveInterval and ClientAliveCountMax. SSH close connection after sometime. How to close ssh connection

Deepak Prasad8 min read
system-administration

How to Disconnect Hung SSH Session [100% Working]

Steps to disconnect hung ssh session. Kill ssh session. Terminate stuck ssh session. Kill unresponsive ssh session. Disconnect pssh session in Linux

Deepak Prasad14 min read
system-administration

How to use C++ WriteFile?

C++ provides several file I/O functions that enable programmers to write and read data from files. One of these functions is WriteFile, which is part of the

Deepak Prasad8 min read
system-administration

How to get complete dependencies list of rpm ?

To find or get complete dependencies list of rpm you can use rpm, yum and repoquery command for both installed and non installed package

Deepak Prasad3 min read
system-administration

Step-by-Step Tutorial: Guide to install systemtap in Linux

Tutorial guide to install systemtap (stap) to extract, filter and summarize data to enable diagnosis of complex performance. Systemtap Tutorial Linux

Deepak Prasad6 min read
system-administration

How to set default boot kernel on Linux ( CentOS / RHEL 7 )

How to set default boot kernel in linux? Change the default boot entry for kernel ? Boot with old kernel version ? Revert to previous kernel version ?

Deepak Prasad3 min read
system-administration

How to delete iscsi target from initiator ( CentOS / RHEL 7 ) Linux

How to delete iscsi target? Remove inactive iscsi target? Remove iscsi storage target from initiator? Remove iscsi virtual disk on CentOS / RHEL 7 Linux.

Deepak Prasad3 min read
system-administration

Properly backup and restore partition table in Linux

How to backup or copy and restore partition table in linux. linux clone partition table, linux repair partition table

Deepak Prasad4 min read