Linux useradd命令
创始人
2024-11-14 21:33:33
0

0 Preface/Foreword

1 useradd介绍

 该命令是系统管理命令(System management command)。

useradd - create a new user or update default new user information

1.1 描述

useradd is a low level utility for adding users. On Debian, administrators should usually use adduser instead. 

When invoked without the -D option, the useradd command creates a new user account using the values specified on the command line plus the default values from the system. Depending on command line options, the useradd command will update system files and may also create the new user's home directory (主目录,根目录) and copy intial files.

1.2 --comment

-c, --comment COMMENT  

 Any text string. It is generally a short description of the login, and is currently used as the field for the user's full name.

1.3 --create-home 

-m, --create-home 

Create the user's home directory if it does not exist. The files and directories contained in the skeleton directory (which can be defined with the -k) will be copied to the home directory.

1.4 --shell

-s, --shell SHELL 

 The name of the user's login shell. The default is to leave the field blank, which causes the system to select the default login shell specified by the SHELL variable in /etc/default/useradd, or an empty string by defaut.

相关内容

热门资讯

网友热议!wepoker透视底... 网友热议!wepoker透视底牌脚本(透视)都是真的有辅助辅助器(有挂技巧)-哔哩哔哩1、wepok...
必备透视!wepoker分析!... 必备透视!wepoker分析!专业讨论辅助教程(有挂功能)-哔哩哔哩1、wepoker分析破解器简单...
不少玩家反映!老友麻将有没有挂... 不少玩家反映!老友麻将有没有挂,wepoker私人局辅助器,大纲教程(有挂秘籍)-哔哩哔哩1、下载好...
玩家必备教程!werplan免... 玩家必备教程!werplan免费挂下载,鹰潭至上饶脚本,真是是真的有辅助教程(有挂秘籍)werpla...
日前!wpk模拟器(透视)一贯... 日前!wpk模拟器(透视)一贯是有辅助修改器(真实有挂)-哔哩哔哩1、打开软件启动之后找到中间准星的...
推荐透视!sohoo开挂辅助!... 推荐透视!sohoo开挂辅助!大神推荐辅助神器(有挂解惑)-哔哩哔哩1、sohoo开挂辅助模拟器是什...
截至目前!潮友软件辅助器脚本,... 截至目前!潮友软件辅助器脚本,广东闲来辅助器,操作教程(真是有挂)-哔哩哔哩1、很好的工具软件,可以...
科技新动态!we-poker正... 科技新动态!we-poker正规吗,越乡游辅助器,都是是真的有辅助教程(有挂方针)1、金币登录送、破...
记者获悉!wepoker手机版... 记者获悉!wepoker手机版透视脚本(透视)切实是真的辅助修改器(有人有挂)-哔哩哔哩;wepok...
总结透视!wepoker辅助透... 总结透视!wepoker辅助透视!一分钟揭秘辅助方法(有挂头条)-哔哩哔哩1、首先打开wepoker...