Can I use a Linux laptop to connect a Mac to wifi through an Ethernet cable?

https://sh.itjust.works/post/55807962

Can I use a Linux laptop to connect a Mac to wifi through an Ethernet cable? - sh.itjust.works

I suddenly need a wired connection for a job starting very soon but it won’t be hooked up for quite some time. I have my neibors wifi password though. Iknow this is a longshot, but would I be able to use my laptop to change a wireless connection into a wired connection? It’s an older desktop Mac managed by the company. My laptop is an HP omen 15 with arch Linux on it

Get a cheap travel router that can use “bridge mode” to receive the wifi and pass along the connection through it’s ethernet port to your computer.
I have a spare router so this’ll be better if it works out. Thanks for the suggestion