April 2015
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
27282930  

Categories

April 2015
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
27282930  

Change the default MySQL data directory with SELinux enabled

This is a short article that explains how you change the default MySQL data directory and adjust SELinux to account for the changes. The article assumes that you’re running either RHEL, CentOS, Scientific Linux or Fedora with SELinux enabled. This works with the most recent EL (6.2) version.

We’ll be doing this in the following […]

Change the default SSH port and alter SELinux

Security through obscurity is not something one would generally recommend. But to thwart the effort of automated scanners changing the default OpenSSH port will yield you less pain in every day life. This will not fend off directed attacks or nullify vulnerabilities or bad security design.

Should you see an error message such as

shd[14221]: […]

Linux ACL

An access control list (ACL), with respect to a computer file system, is a list of permissions attached to an object. ACL allows you to grant or deny permissions for any user or group on a filesystem resource.

Enabling ACL

To enable ACL, edit your /etc/fstab file as such:

/dev/VolGroup00/LogVol00 / ext3 defaults,acl 1 1 […]

Disable the filesystem check (fsck) at boot time

There’s several ways of accomplishing this. I will list all the methods beneath, just pick the one that fits the situation/you.

Filesystem tunable Grub boot parameter Placing command files on your root device Active reboot without FSCK Filesystem tunable

Use the tune2fs command to tell your filesystem to have a max count of mounts before […]

Setting up a 2-node GlusterFS file-system

This will be a quick howto on how you would set up a 2-node GlusterFS filesystem. You may look up more information at http://www.gluster.org/.

Volume types for GlusterFS

– Distributed. Distributed volumes distributes files throughout the bricks in the volume – Replicated. Replicated volumes replicates files across bricks in the volume – Striped. Striped volumes […]