useradd 示例 – 增加一个新用户到附加用户中

#添加新用户carry到 用户组root中
useradd -G root carry

#添加已存在的用户carry到 用户组 root中
usermod -a -G root carry

  usermod  -G -a (append) 将用户添加到用户组中  

 

  

  

 

 

相关文章:

  • 2021-12-25
猜你喜欢
  • 2021-10-19
  • 2022-12-23
  • 2021-05-18
  • 2021-06-27
  • 2022-12-23
  • 2021-12-13
相关资源
相似解决方案