how to make a gameobject rigid?

I have a capsule (player) and cube(rigid object) on the scene. I added Rigidbody component to the cube and increased its drag and angular drag so that when i hit on the cube, it didn’t bounce off but moved by its position. I even turned on the check box of Freeze position and rotation.This made my player to penetrate the cube.What should i do to make the cube stay on its position as a rigidbody.Kindly Help.

If you want the cube to act like a wall and not move at all, remove the Rigidbody and add a Box Collider.