chmod if a mode is available