Archive for the ‘Security’ Category

CVS server on Ubuntu

Tuesday, February 5th, 2008

Install CVS files:
sudo apt-get install cvs

Install the CVS server:
sudo apt-get install cvsd

When prompted in the cvsd installation process for Repository, type in “/cvsrepo”.

Now that the cvsd installation in complete goto /var/lib/cvsd
or seeking for a change(or if there is a new version of cvs updated):

sudo cvsd-buildroot /var/lib/cvsd
If the folder cvsrepo does not exist, then create it ..
sudo mkdir cvsrepo
sudo chown -R cvsd:cvsd cvsrepo

and then initilize the repository
sudo cvs -d /var/lib/cvsd/cvsrepo init
create a user and password
sudo cvsd-passwd /var/lib/cvsd/cvsrepo +username
sudo vi //var/lib/cvsd/cvsrepo/CVSROOT/config
Change “SystemAuto=no”

Test

cvs -d :pserver:username@localhost:/cvsrepo login

cvs -d :pserver:username@localhost:/cvsrepo checkout .

Securing Linux Server with IPKungfu

Wednesday, October 31st, 2007

Ipkungfu or linuxkungfu is an iptables firewall script. With ipkungfu, you can easily configure as to which port of the server will be opened for connection, restrict who can access the server plus other security features. You can refer to the website of ipkungfu at http://www.linuxkungfu.org/ for the list of complete features.

Ipkungfu is available a the Ubuntu repositories. To install ubuntu,

# aptitude install ipkungfu

Ipkungfu should now be working.

After installing ipkungfu, type (more…)

How to install nmap into ubuntu

Thursday, August 16th, 2007

open a terminal and enter:

apt-get install nmap

How to use sudo without a password

Saturday, July 7th, 2007

sudo visudo

Find: root ALL= (ALL) ALL

Replace with: root ALL=(ALL) NOPASSWD: ALL

Save that file.

Change the root password on Ubuntu

Saturday, June 23rd, 2007

default, Ubuntu has no set password for the root user. To gain access, you have to type in your own user password. This is the password you set for the first user while installing Ubuntu.

To manually change or set a password for the root user, navigate to the shell command prompt:

  1. Click Applicatons -> Accessories. Click Terminal.
  2. A new window appears with a prompt. Key in “sudo passwd“.
  3. System will prompt you to enter the new root password twice. Now, you are done with your new root password.