【文件属性】:
文件名称:添加用户-Unix基础与Shell编程技术培训
文件大小:4.68MB
文件格式:PPT
更新时间:2021-04-22 18:41:37
Unix相关
添加用户
命令格式如下:
/etc/useradd [-c comment] [-d directory]] [-g group] [-m] [-s shell] username
其中:
-c comment 表示注释
-d directory 表示家目录
-g group 表示属于哪个用户组
-m 表示若家目录不存在,则自动创建
-s shell 表示该用户使用的shell
username 用户名
设密码
对用户devos建立密码的命令为:
passwd devos