try to use sudo in maglev related code, fix #3014