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.

相关推荐
猫豆~28 分钟前
Ansible自动运维——6day
linux·数据库·sql·缓存·云计算
QQ__176461982428 分钟前
SSH远程时找不到模块ModuleNotFoundError
linux·服务器·ssh
wangchen_01 小时前
Linux文件描述符定时器:timerfd系列接口
linux·运维·服务器
不染尘.1 小时前
TCP客户服务器编程模型
linux·服务器·网络·网络协议·tcp/ip·计算机网络·ssh
Trouvaille ~1 小时前
【Linux】目录、路径与软硬链接:Linux文件组织的奥秘
linux·运维·服务器·chrome·文件系统·软硬链接·路径缓存
wdfk_prog1 小时前
[Linux]学习笔记系列 -- [fs]file_table
linux·笔记·学习
张太行_1 小时前
Linux shell中设置串口参数
linux·运维·chrome
大连好光景1 小时前
WSL下创建的Ubuntu系统与Windows实现显卡直通
linux·运维·ubuntu
huangjiazhi_1 小时前
Ubuntu 添加服务自启动
linux·运维·ubuntu
wqfhenanxc1 小时前
vscode/cursor 远程Linux基础命令
linux·ide·vscode