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.

相关推荐
王小义笔记11 分钟前
WSL(Linux)如何安装conda
linux·运维·conda
偷懒下载原神21 分钟前
【linux操作系统】信号
linux·运维·服务器·开发语言·c++·git·后端
源远流长jerry28 分钟前
RDMA 传输服务详解:可靠性与连接模式的深度剖析
linux·运维·网络·tcp/ip·架构
AMoon丶44 分钟前
Golang--垃圾回收
java·linux·开发语言·jvm·后端·算法·golang
Densen20141 小时前
发布blazor应用到Linux, 使用nginx作为WebSocket代理
linux·websocket·nginx
相思难忘成疾1 小时前
RHEL9 文件管理与 vi/vim 编辑操作实验
linux·编辑器·vim
朱一头zcy1 小时前
Linux系列02:网络配置、修改hosts映射文件、关闭防火墙
linux·运维·网络
天赐学c语言1 小时前
Linux - 网络应用层协议HTTP
linux·c++·网络服务
JiMoKuangXiangQu2 小时前
Linux 锁 (3) - semaphore
linux·semaphore
顶点多余2 小时前
Linux中进程间通信 ---管道篇
linux·运维·服务器