Samba as a PDC with tdbsam as a backend on CentOS 5

Here I discuss how to set up Samba as a Primary Domain Controller with tdbsam as a backend to store username and password.


1. Install the following packages
2. Configure /etc/samba/smb.conf file as follows:
workgroup = "YOURDOMAIN NAME"
server string = Samba PDC
passdb backend = tdbsam
log level = 3
log file = /var/log/samba/%m.log
max log size = 50
add user script = /usr/sbin/useradd "%u" -n -g users

Install Windows Vista or Windows 7 from USB Flash Drive.

Issue: How to install Windows 7 or Windows Vista using USB Flash Drive.
Prerequisite: Windows 7 or Windows Vista DVD and USB Flash Drive with minimum 4 GB of space.

Reinstall a corrupted boot partition.

In a system where the "/boot" partition is a separate partition, when /boot is corrupted or be
formatted mistakenly, you can not boot the system but do not want to reinstall the whole

Three things that even Microsoft can't explain!

Three things that even Microsoft cant' explain
The weired bugs
An Indian found that nobody can create a FOLDER anywhere on the Computer which can be named as "CON". This is something funny and inexplicable… At Microsoft the whole Team, couldn't answer why this happened!

Virtual Network Computing VNC on Linux

Virtual Network Computing (VNC).

Platform: Linux

Flavor: Red Hat 5.x and Cent OS 5.x

Configuration Steps in detail:

   1. Install VNC and VNC Server package on Cent OS 5 as a privilege user root. I did this using yum.                                         
    #yum –y install vnc vnc-server.

Transparent proxy from scratch for http & https

While configuring it in a transparent mode I found myself in an embarrassing situation, because it is not working. The version of squid which I worked on is squid-2.6.STABLE21-3.el5. And after spending time I figure out the problem & here is the complete solution for those who configuring squid proxy server in a transparent mode first time after installation. Before proceeding please update your squid package.

Squid as a transparent proxy over ssl https.

Setting up squid as a transparent proxy is fairly an easy job. If we Google for “how to set up squid as a transparent proxy” Google renders a lots of links for our reference. But it is commonly seen that when we are using transparent proxy we are unable to connect to https connection like Gmail and many more sites which https protocol for security concern. Sites which use http protocol can easily open.

Useful Windows Commands

lusrmgr.msc - Local users and groups
perfmon.msc - Performance monitor
rsop.msc - Resultant set of policies
secpol.msc - Local security settings
services.msc - Various Services

SSH Login without password

Rahul and I have a root access to remote server.

  1. 1. #yum  -y install openssh
  2. 2. Ssh Rahul@localhost     # to get full environment of user Rahul
  3. 3. [Rahul@intranet ~]$ssh-keygen  -t rsa  # -t option allow you to select type of algorithm like #RSA or DSA
  4. 4. Now make sure on remote Linux/UNIX server .ssh directory exists in user’s home directory. In my environment it is /root/.ssh/. User roots home directory.
  5. 5. [Rahul@intranet ~]$ ssh root@”remote server” mkdir –p ~root/.ssh
  6. 6. [Rahul@intranet ~]$scp -p /home/Rahul/.ssh/ root@”remote server” /root/.ssh/authorized_keys #it will ask you for RSA fingerprint and prompt for a password.

Hi, I am Rahul Pahade

This is my first blog and I feel very excited because soon I will share my knowledge and experience with you.

Syndicate content