Determine what kind and size screwdriver you need for the job. If screws have a straight line across the head, you need a flat-head screwdriver. If the heads have ridges resembling stars, you will need a Phillips screwdriver. Make sure you do not use a screwdriver that is too large or too small, as you could strip the screw. Do not use an electric screwdriver; it has too much torque for this job.
Line up the doorknob. If the screws go through the knob assembly, straighten both sides of the knob and line them up. You may need to have someone hold this in place, or you can clamp it to the door with a vise. If the doorknob has a plate, line it up properly.
Tighten the screws. Using your screwdriver, turn the screws clockwise to tighten them. Do not overtighten, as this could also strip the screws. The screw head should be almost flush with the knob or the plate.
Test the doorknob. Jiggle the knob back and forth to make sure that it is no longer loose. If it is, repeat step 3 until the knob assembly no longer moves up or down or side to side.