There are many kinds of locks that you can install on your door.
How to lock a sliding barn door.
Place it between the jamb and either side of the door.
The first device is a teardrop or fan shaped lock which comes in 2 parts.
Consider the type of barn door.
Get a hasp lock and fix the hook to the door frame with screws.
Padlock option for double sliding barn doors.
Adding a lock to a sliding barn door is a step toward making your barn much more secure.
First attach the latch groove to the sliding door.
Consider your room choice.
However the simplest as well as most cost effective method of locking your barn doors is using a hasp lock.
How to lock a sliding barn door from outside.
Place it between the jamb and either side of the door.
If you have a double sliding barn door use a padlock coupled with a hook and eye.
The fan blade and the latch groove.
It will ensure that the door will not lift off the rail easily and will prevent the bottom from pulling away.
2 the latch lock one of the simplest solutions to this kind of problem is going to be the latch lock.
A hasp and a padlock definitely the easiest way to secure a barn door from the outside is a hasp and padlock.
With that being said you usually just screw all of the parts together as directed and then you will want to attach the lock to either the wall or the door jamb depending on your preferences.
Then fasten the fan blade to the doorway as shown in the picture.
How to make a barn door lock with a flush to wall device.
Depending on the thickness of your sliding barn door you might need to add some sort of spacer between your eye latch and the wall.