Like some other people have said -- a banzai charge (or a Zulu impi) is not a point target, it's an area target. If the bad guys are obliging enough to line up in a big mass and charge from 1000+ meters out, that's a whole different issue and an individual can likely make consistent hits on someone in the assembled mob at ranges where they'd never even be able to pick out an individual or small unit using the cover and concealment the terrain provides, etc.
The rifle is a point weapon. Poor discipline, training or leadership may lead to rifles used as area weapons. It doesn't change from a Zulu impi, Japanese Banzi, Chinese or North Vietnamese human wave attacks. If you use your rifles as area weapons you are missing the bad guys.
Choose a target and hit him. Keep hitting him until he is down. Pick another target. Repeat until, they go away, die, or over run you.
This from the Korean war.
"Do not attack the First Marine Division. Leave the yellowlegs alone. Strike the American Army."
--Orders given to Communist troops in the Korean War;
shortly afterward, the Marines were ordered to not wear their khaki leggings.
Why? The Army had a lot more supporting arms per unit/man than the Corps has ever had. True we have superior command and control. That was developed because we have a lot less supporting arms than most military units of our size and mission assignments and, to survive had to get real efficient in their deployment and utilization.
but once again the biggest reason was Marine Marksmanship on the battlefield.
In Fallujah, there was an investigation because of all the [non racial or ethnic pejorative for a Jihadist trying to kill American troops, per monitors] shot in the head. The brass thought the Marines were executing all these guys. They learned that the Marines with their new found optics where just making a hell of a lot of head shots. That's called marksmanship. Put that together with optics, and it gets nothing but better.
The fact is that Marine marksmanship has always been a major issue. The Corps expends money and manpower on marksmanship that no other service, world wide does. The difference is in combat. Now up close in CQB, the classic marksmanship usually doesn't make a difference. Different set of skills. (not talking about spooks in SPECOPS outfits either, Aint enough of them for a real fight anyway.)
When you are in positions that allow a little stand off or require the enemy to cover some open ground to close with your position, aimed rifle fire can be very effective, in conjunction with your area weapons and supporting arms.
Several folks have brought up several historical cases.
The British against the Boors. The Boors marksmanship with their superior rifle and caliber 7mm Mauser were their primary edge.
In WWI The old British Army (They were soon destroyed at the Somme, the following year) IIRC at Metz held off the German advance with just rifle fire. In fact the Germans thought they were being fired on by Machine guns.(This happened before the two sides dug in and were still maneuvering) The old pre WW1 British Army had a tactic called the crazy minute. The average trooper had to be able to hit out to 1000 yards, 15 Times in 1 minute a reasonably sized target.
Guadalcanal was mentioned, the Corps Used their '03's. Often at extended ranges. Not shooting into a crowd. Aiming at a specific enemy trooper in that crowd is what got you hits. Machine guns are area weapons, Rifles are point weapons.
Interesting story told by a reporter while in Afghanistan. (paraphrased) "At night I could tell the difference between the Taliban and our boys. The Taliban would empty a magazine, our boys would only shoot 2 or 3 shots."
Combat accuracy, the solution for the battlefield.
Yes Supporting arms does the yeoman work of dispatching our enemies. But put that together with accurate infantry fire, and now you have something. Makes the Communist tactic of "hugging the belt" rather futile. Oh and rifle fire for the infantry, is always there and ready to go.
Go figure.
Fred