Linux useradd命令

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 adduserinstead.

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 theuser'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 theuser'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.

相关推荐
s***45311 小时前
Linux 下安装 Golang环境
linux·运维·golang
J***516812 小时前
Linux安装Redis以及Redis三种启动方式
linux·redis·bootstrap
4***175412 小时前
Linux 下安装 Golang环境
linux·运维·golang
Lenyiin12 小时前
《 Linux 修炼全景指南: 七 》 指尖下的利刃:深入理解 Vim 的高效世界
linux·运维·服务器·vim·lenyiin
sulikey14 小时前
Linux基础指令与权限管理深度解析:从入门到精通
linux·运维·服务器·ubuntu·centos·linux命令·linux权限
s***469815 小时前
linux 设置tomcat开机启动
linux·运维·tomcat
xu_yule15 小时前
网络和Linux网络-3(套接字编程)TCP网络通信代码
linux·网络·tcp/ip
HalvmånEver16 小时前
Linux:进程的切换与调度(进程四)
linux·运维·服务器
LCG元17 小时前
终端里的"黑客帝国":htop, glances, bpytop 系统监控工具横评
linux
L***B56817 小时前
如何安装linux版本的node.js
linux·运维·node.js