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.

相关推荐
炫友呀5 小时前
Centos 更新/修改宝塔版本
linux·运维·centos
花小璇学linux8 小时前
imx6ull-驱动开发篇24——Linux 中断API函数
linux·驱动开发·嵌入式软件
林开落L9 小时前
库制作与原理(下)
linux·开发语言·centos·库制作与原理
wxy3199 小时前
嵌入式LINUX——————TCP并发服务器
java·linux·网络
Castamere9 小时前
配置 Linux 终端 (zsh)
linux
小韩博11 小时前
metasploit 框架安装更新遇到无法下载问题如何解决
linux·网络安全·公钥·下载失败
长臂人猿11 小时前
JVM常用工具:jstat、jmap、jstack
linux·运维·jvm
轻松Ai享生活11 小时前
揭秘 linux:一张图看懂系统配置的核心
linux
wdxylb11 小时前
云原生俱乐部-RH134知识点总结(2)
linux·云原生
_Chipen12 小时前
lazy_vim_cmake_clangd_从零到自动补全与语法检查
linux·编辑器·vim