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.

相关推荐
c***212911 小时前
ubuntu 安装 Redis
linux·redis·ubuntu
u***324311 小时前
Mysql官网下载Windows、Linux各个版本
linux·数据库·mysql
小鹿学程序11 小时前
02-集群节点准备:克隆虚拟机
linux·服务器·apache
boligongzhu11 小时前
ubuntu20.04搭建YOLOv11 GPU运行环境
linux·yolo·ubuntu·机器人
c***727411 小时前
Linux下PostgreSQL-12.0安装部署详细步骤
linux·运维·postgresql
v***Y8912 小时前
linux 设置tomcat开机启动
linux·运维·tomcat
松涛和鸣12 小时前
DAY20 Optimizing VS Code for C/C++ Development on Ubuntu
linux·c语言·开发语言·c++·嵌入式硬件·ubuntu
unclecss12 小时前
从 0 到 1 手写 Linux 调试器:ptrace 系统调用与断点原理
linux·运维·服务器·c语言·ptrace
last demo12 小时前
fail2ban实验
linux·运维·服务器·网络
toughboy12 小时前
CENTOS7 重置ROOT密码
linux