Regarding the UK, farmers are permitted to have shotguns.They must be kept in a secure gun safe and only the licence holder can know where the key is kept.Sometimes the police visit when the licence holder is out and ask to inspect the weapon;if someone provides the key the shotgun is impounded...