Category: Linux

Create chroot jail with openssh

How to create a chroot jail with openssh (sftp only)This write up describes how to utilize openssh to setup a chroot jail for sftp connections within the CentOS family. I tried & tried to install

cron tips

Cron tipscrontab formatHere’s a quick comment that can be added to users crontabs as a reminder to the crontab format: # m h dom mon dow command There are various ways to schedule a command to run, su

ip_conntrack table full

ip_conntrack: table full, dropping packetAt one point, there was high call volume into our support center of customers complaining about severe lag. One common denominator was that the customer base

Extracting initrd

How to extract and view contents of initrdDepending on your version of linux, the /boot/initrd may be one of two formats: cpio archive ext2 filesystem data The easiest way to determine what you’re w

How To Check If LFS is Enabled

To check if a file system supports the LFS (Large File System) standard, you can use the getconf command. If the result is 64, LFS is supported. getconf FILESIZEBITS / In the example above, the root

postfix masquerade

Setting relayhost in postfixThe relayhost parameter specifies the default host to send mail to. This is equivalent to the DS entry in sendmails MTA sendmail.cf config file. !!! note output below h

Failed to activate lv

Failed to activate new LVEDS etlprod2 ~ # lvcreate -l 14645 -n lv_dwstore vg_etlprod2 Not activating vg_etlprod2/lv_dwstore since it does not pass activation filter. Failed to activate new LV. Resol

Redirecting stdout and stderr

How to redirect standard output and standard errorWe’ve seen the numbers used in redirecting stdout and stderr. So what do they mean? 1 represents standard output 2 represents standard error 2>

Setup yum repo from DVD ISO

How to set up a yum repo from locally mounted DVD ISOMount the iso to /mnt In the case of redhat, copy the media.repo file from the root dir of the mount point to /etc/yum.repos.d. Edit the file and

Setup Local Mirror of RHEL Repo

How To create your own local Red Hat Enterprise Linux yum repository serverTo begin, build a virutal machine or stand alone system installing the same OS version of Red Hat you wish to serve as the yu