Every library established under this chapter shall be forever free to the inhabitants and nonresident taxpayers of the library district, subject always to such rules, regulations, and bylaws as may be made by the board of library trustees. For violation of any rule, regulation, or bylaw a person may be fined or excluded from the privileges of the library.