Unplug the lamp from the power cord.
Remove the lamp shade and unscrew the bulb from the socket.
Unscrew the socket from the threaded cap beneath it, where the cap attaches to the lamp. Use pliers, if necessary. On some lamps, there may be a small screw on the side of the socket base that you must remove to release the socket.
Slide off the tube-shaped insulator from the socket.
Pull the socket gently from the lamp to expose the wiring. Loosen the two screws on the side of the socket holding the two wires, and pull each wire free from the old socket. May a note of which wire connects to which screw terminal.
Wrap the end of each wire under its corresponding screw head on the new socket with the pull chain. Tighten each screw so the wire is firmly secured. The bare wires must not touch each other.
Slide the tube insulator over the new socket.
Lower the new socket into the threaded cap on the lamp, pulling gently on the other end of the power cord to draw the cord through the inside of the lamp. Tighten the socket on the cap by turning clockwise or tightening the screw in the side, depending on your model.
Screw in a lightbulb with a compatible watts rating for the socket.
Replace the lamp shade and plug in the power to cord to an electrical outlet.