#切换root用户
    su root
    vi /etc/sodoers

    找到: 在root下面添加一行

    你的用户名 ALL=(ALL) ALL