1.添加文件 /etc/sudoers.d/wsy_sudoers

%wsy-sudoers ALL=(ALL:ALL) NOPASSWD:ALL

2.添加用户组

groupadd wsy-sudoers

3.添加用户到group wsy-sudoers

usermod -aG wsy-sudoers wangshuyi

 

相关文章:

  • 2022-12-23
  • 2022-01-18
  • 2022-01-07
  • 2021-05-20
  • 2022-12-23
  • 2021-11-27
  • 2021-06-08
猜你喜欢
  • 2022-12-23
  • 2021-08-01
  • 2022-12-23
  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案