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.

相关推荐
赖small强3 小时前
Linux 优先级反转问题详解与处理方案
linux·优先级反转·优先级继承·缩短临界区
wdfk_prog3 小时前
[Linux]学习笔记系列 -- [kernel][time]timekeeping
linux·笔记·学习
yuanManGan3 小时前
走进Linux的世界:冯诺依曼体系结构
linux
小白银子3 小时前
零基础从头教学Linux(Day 60)
linux·数据库·mysql·oracle
new_daimond4 小时前
Linux 服务器内存监控与优化指南
linux·服务器·chrome
一介草民丶4 小时前
Linux | Mongodb 6 离线安装
linux·运维·mongodb
赖small强4 小时前
Linux 线程相关结构对照表与关系图
linux·thread_info·task_struct·thread_struct
Justin_194 小时前
部署zabbix
linux·centos·zabbix
STUPID MAN4 小时前
Linux使用tomcat发布vue打包的dist或html
linux·vue.js·tomcat·html
mc23565 小时前
Linux实用操作
linux·运维·服务器