iptables – restorecon: command not found

We have found reports of some people seeing a "restorecon: command not found" when attempting to start or save iptable rules. Example: iptables: Saving firewall rules to /etc/sysconfig/iptables: /etc/init.d/iptables: line 274: restorecon: command not found We have found this error on some CentOS 6 installations (virtualized.) This error is due to a missing package ... Read More...

How to mount a Windows SMB share on CentOS Linux

In this tutorial, we will learn how to mount a Windows partition on CentOS by using mount.cifs [info_box] Please ensure that you have configured a Windows share before continuing. [/info_box] The mount.cifs file is provided by the samba3-client package. This can be installed from the standard CentOS yum repository by running the following command: yum ... Read More...

How to change hostname on CentOS Linux

This quick tutorial will describe how to change the hostname on your CentOS Linux server. Where HOST_NAME occurs, replace it with your desired hostname. 1. Run the hostname command: 2. Open /etc/sysconfig/network, update the HOSTNAME line and save: 3. Open your hosts file, and update the hostname entry and save: Alternatively, you can use this ... Read More...