March 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031

Categories

March 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031

NFS SERVER Centos 6.5

yum install -y nfs-utils rpcbind

Environmental instructions

nfs server system: CentOS 6.5 x86_64 nfs server IP: 192.168.1.10 nfs client system: CentOS 6.5 x86_64 nfs client IP: 192.168.1.12

Install the NFS server (192.168.1.10)

Step-1: install nfs-utils and rpcbind, run the following command:

yum install -y nfs-utils rpcbind

Step-2: specify a fixed port for NFS, run the […]

Kernel Crash Report/Crash Dump Analysis

Kernel Crash Report/Crash Dump Analysis In my previous post, we have configured how to capture kernel dump for reference click on the link kernel crash dump Here in this article,we master the basic usage of crash utility to open the dumped memory core and process the information contained therein and to intercept the output.

[…]

Booting Centos in verbose mode

When you boot a Centos server, it defaults to showing a splash screen when booting. You can press escape to switch to a more verbose boot mode. This article describes how to set verbose as the default boot mode.

Booting Centos in verbose mode

Login as the root user en edit the Grub menu.

[…]

How to Remove commands from your history

How to remove if your typed password or sensitive information in your command console.

[root@linux1 ~]#history 1 history 2 mypassword 3 otherpassword 4 ls -la 5 sudo rm -f /home/

Remove sensitive command with numbered entry.

[root@linux1 ~]#history -d 2

[root@linux1 ~]#history 1 history 2 otherpassword 3 ls -la 4 sudo rm -f /home/

[…]

find Unauthorized SUID/SGID System Executables and fix them

find Unauthorized SUID/SGID System Executables and fix them.

The following command discovers and prints any setuid or setgid files on local partitions. Run it once for each local partition PART:

# find PART -xdev \( -perm -4000 -o -perm -2000 \) -type f -print

If the file does not require a setuid or setgid […]

Red Hat Enterprise Linux 6 Security TIPS and Hardening

 

Rules In Pre-release Final STIG for Red Hat Enterprise Linux 6

 

V-ID CCI CAT Title Description Check Procedures Fixtext RHEL-06-000001 CCI-000366 low The system must use a separate file system for /tmp. The /tmp partition is used as temporary storage by many programs. Placing /tmp in its own partition enables the setting of […]

BIND CHROOT CENTOS 7

BIND (Berkeley Internet Name Daemon) also known as NAMED is the most widely used DNS server in the internet. This tutorial will descibes how we can run BIND in a chroot jail, the process is simply unable to see any part of the filesystem outside the jail. For example, in this post, i will setting […]

VSFTP CENTOS 7

mkdir -p /ftpserver/open mkdir -p /ftpserver/private

yum -y install ftp vsftpd

[root@keeplive ~]# rpm -qf /usr/bin/db_load libdb-utils-5.3.21-17.el7_0.1.x86_64

echo opentest > /ftpserver/open/open.txt

echo ftptest > /tmp/ftptest1.txt

touch /ftpserver/open/webapp.txt

[root@keeplive ~]# rpm -qc vsftpd /etc/logrotate.d/vsftpd /etc/pam.d/vsftpd /etc/vsftpd/ftpusers /etc/vsftpd/user_list /etc/vsftpd/vsftpd.conf [root@keeplive ~]#

vi /etc/vsftpd/vftpuser.txt alice P@ssw0rd jack P@ssw0rd tom P@ssw0rd

db_load -T -t hash -f /etc/vsftpd/vftpuser.txt /etc/vsftpd/vftpuser.db

[root@keeplive […]

Logical Volume Manager

Server: Centos Logical Volume diskserver.rmohan.com (Centos 6.5) = 192.168.1.6

Disk to use: Disk /dev/sdb: 50GB DISK A Disk /dev/sdc: 50GB DISK B Disk /dev/sdd: 50GB DISK C

 

 

 

Disk /dev/sdb: 53.7 GB, 53687091200 bytes 255 heads, 63 sectors/track, 6527 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size […]

RHEL 6 Security Guide

1. GRUB password

September 25th, 2014 | Category: Centos, RHCE | Leave a comment