Which device, which firmware (including version)?

Do you want it permanently off, or to be able to control it from user space?

Some GL.iNet devices use a GPIO to control the power to the USB bus. Depending on the firmware, it may be possible to change the value at run time from user space.