Actor Roy Scheider and his neighbors yesterday were issued emergency permits to erect walls of sandbags in front of their oceanfront homes in Sagaponack in a bid to keep the voracious Atlantic from swallowing them up.

Recent storms have put Scheider’s home and at least five others in the affluent Hamptons village in peril – eating away the expansive beach and rolling dunes that once protected them from the sea.

The homeowners had hoped to get permission to build more formidable buffers – of boulders, rubble or steel bulkheading – but the Department of Environmental Conservation limited them to 50- to 100-pound sandbags.

“That’s not going to save our house, no way,” said homeowner Patricia Grantham, who is defying a fire department order to evacuate her Town Line Road beach house.

A mile to the west, Scheider said he and his Gibson Lane neighbors “are going to have 70-pound sandbags put in,” but they’re not hopeful.

“The sandbags will last maybe for two mild storms. We may get through the winter. But they won’t be a permanent stopgap,” he said. “The ocean is very strong, and there’s no sand left.”

The big problem, he said, are two rock jetties built a half century ago to protect the oceanfront home of Pan American Airlines founder Juan Trippe on Georgica Pond in East Hampton. The house now belongs to Kelly Klein. The jetties have caused the steady erosion of the beaches to their west, Scheider noted.

“If they weren’t there, the sand would come and go as it has for hundreds of years. The beach would increase and decrease in a natural way,” he said.

If the sandbags don’t work, what then?

“I may have to try civil disobedience,” said Scheider. Asked to elaborate, he said, “I don’t know. I may park my car, and your car and others in front of the dunes.”