I have installed bayonets on many rifles with the scabbards on them. It just depends on the rifle and bayonet. Examples where this is possible include the Arisakarifles, Carcano rifles, and I believe some Swiss
rifles. I would have to go and retry a bunch of rifles as it wasn't really something I was paying attention to at the time.