例如我要新建一个nginx用户,并指定目录,允许使用bash登录

sudo useradd -d "/home/nginx" -m -s "/bin/bash" nginx
passwd nginx

Ubuntu新建用户并指定目录

 

 passwd用于修改nginx的登录密码

 

相关文章:

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