SUID, SGID, Sticky Bit explained.

We often neglect the basics of Linux such as the Suid, sgid and sticky bits. But they are really useful if we know to use them properly.
Below I am explaining it briefly with appropriate examples.
1) Sticky bit was used on executables in linux (which was used more often)so that they would remain in the memory more time after the initial execution, hoping they would be needed in the near future. But since today we have more sophisticated memory accessing techniques …

Read On »

Install Yum package on centos 5 and centos 4 servers

What is Yum?
” Yum is an automatic updater and package installer/remover for rpm systems. It automatically computes dependencies and figures out what things should occur to install packages. It makes it easier to maintain groups of machines without having to manually update each one using rpm.
Features include:
* Multiple Repositories
* Simple config file
* Correct dependency calculation
* Fast operation
* rpm-consistent behavior
* comps.xml group support, including multiple repository groups
* Simple interface”
1. Installation
The best part of this howto is you have to just install …

Read On »

Install OpenVZ on centos 5, Install OpenVZ, Easy OpenVZ Installation Tutorial.

OpenVZÂ installation easy on CentOS 5
To start, you need to have your kernel compiled with openVZ. Check that using
#uname -a
The output should look something like Linux … 2.6.188.1.8.
el5.028stab038.1 ..
The most important part is 028stab038, if you do not have this (the numbers might be
different on your machine) you need to update your kernel using yum. So, make sure you
are connected to the Internet. To update the kernel you need first to update your yum
repository.
#cd /etc/yum.repos.d
#wget http://download.openvz.org/openvz.repo
#cd
Till now you have …

Read On »

Creating container private area (centos-4-i386-default) Cached os template /vz/template/cache/centos-4-i386-default.tar.gz not found Creation of container private area failed

Fix for the  Creation of container private area failed error during OpenVZ installation
[root@Centos cache]# vzctl create 102 –ostemplate centos-4-i386-default
Creating container private area (centos-4-i386-default)
Cached os template /vz/template/cache/centos-4-i386-default.tar.gz not found
Creation of container private area failed
download centos-4-x86.tar.gz from http://download.openvz.org/template/precreated/ into directory /vz/template/cache/
[root@Centos cache]# ls
centos-4-x86.tar.gz  fedora-7-i386-default.tar.gz
[root@Centos cache]# mv centos-4-x86.tar.gz centos-4-i386-default.tar.gz
now try to run  vzctl create 101 –ostemplate centos-4-i386-default it should work fine.

Read On »

 Page 1 of 2  1  2 »