CentOS error - sudo: effective uid is not 0, is sudo installed setuid root?

后端 未结 3 1739
心在旅途
心在旅途 2021-01-04 10:28

I found another question with the same headline, however, I suppose my case is a bit different.

In an attempt to setup the new project, I needed to install nodejs.

3条回答
  •  一向
    一向 (楼主)
    2021-01-04 10:48

    The problem is that you probably changed permissions to the directory /usr/bin.

    To resolve that :

    1) First be sure that root is owner of this directory /usr/bin :

    chown root:root /usr/bin
    

    2) and change permission for this directory :

    chmod u+s /usr/bin/sudo
    

提交回复
热议问题