https://blog.csdn.net/lglglgl/article/details/46932001

 

以root身份登录,然后输入

usermod -g root username

执行完后username即归属于root组了,可以再输入

id username查看输出验证一下,如果看到类似下面的输出:

uid=502(username) gid=0(root) 组=0(root)

就表示OK了

相关文章:

  • 2022-02-07
  • 2022-12-23
  • 2021-11-03
  • 2021-12-27
  • 2021-06-07
猜你喜欢
  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案