The flute oscillations of a hot-ion plasma in a non-uniform magnetic field are discussed. It is shown that resonances, at which the phase velocity of the waves is the same as the velocity of the ion Larmor drift, can have a stabilizing effect. In particular, with careful selection of the resonance characteristics, one can control the most dangerous "mode 1" of the flute oscillations. Also examined are resonances of the second type, which appear only in an electric field; at them the phase velocity of the wave is the same as the velocity of the plasma electric drift. In the presence of such resonances, the natural frequencies of the flute oscillations become complex of necessity and, accordingly, the oscillations themselves either grow or are damped.