check config write permission