Bacteria have the same problem as most protists-- water tends to flow into them. Depending on the solute levels in the environment, the bacteria will either stockpile or actively get rid of salts inside the cell like potassium and sodium. Because the bacteria changes based on its environment, it is an osmoconformer