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.

相关推荐
zl9798991 小时前
RabbitMQ-下载安装与Web页面
linux·分布式·rabbitmq
kitty_hi3 小时前
mysql主从配置升级,从mysql5.7升级到mysql8.4
linux·数据库·mysql·adb
moringlightyn4 小时前
Linux---进程状态
linux·运维·服务器·笔记·操作系统·c·进程状态
go_bai4 小时前
Linux-线程2
linux·c++·经验分享·笔记·学习方法
shizhan_cloud5 小时前
DNS 服务器
linux·运维
q***13345 小时前
Linux系统离线部署MySQL详细教程(带每步骤图文教程)
linux·mysql·adb
小雪_Snow6 小时前
Ubuntu 安装教程
linux·ubuntu
IT逆夜6 小时前
linux系统安全及应用
linux·运维
Forest_HAHA7 小时前
<10>_Linux网络基础(上)
linux·服务器
c++逐梦人8 小时前
Linux下的编辑器vim的介绍
linux·编辑器·vim