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.

相关推荐
梁洪飞19 小时前
通过链接文件和Start.S学习armv7
linux·arm开发·嵌入式硬件·学习·arm
DN金猿19 小时前
使用ubuntu安装nginx时报错
linux·nginx·ubuntu
小赵还有头发19 小时前
安装Ceres与glog
linux·学习·无人机·ceres·glog
负二代0.020 小时前
Linux下的网络管理
linux·网络
s_daqing20 小时前
ubuntu(arm)安装redis
linux·redis·ubuntu
林鸿群20 小时前
ubuntu 26.04 安装mysql-server
linux·mysql·ubuntu
betazhou20 小时前
rsync使用案例分析
linux·运维·服务器·rsync·同步数据
安静的技术开发者21 小时前
Linux Ubuntu学习笔记
linux·ubuntu
geshifei21 小时前
Sched ext回调1——init_task (linux 6.15.7)
linux·ebpf
晚风予卿云月1 天前
【Linux】自动化构建—make/Makefile
linux·自动化·make/makefile