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.

相关推荐
2401_863905443 分钟前
haproxy
linux
皮皮哎哟21 分钟前
Linux多线程通信:告别数据混乱
linux·互斥锁·进程间通信·信号量
三天不学习30 分钟前
Linux inotify 机制详解,解决“用户实例限制”问题
linux·运维·c#
ZFB00011 小时前
【麒麟桌面系统】V10-SP1 2503 系统知识——插入U盘(移动硬盘)为只读状态
linux·运维·kylin
unfeeling_1 小时前
Keepalived实验
linux·服务器·网络
Web极客码1 小时前
解决WordPress后台“外观”菜单消失
linux·服务器·wordpress
熬夜有啥好1 小时前
Linux软件编程——综合小练习
linux·算法·目录遍历·fgets·strcpy·linux内核与用户交互·strtok
qizhideyu1 小时前
LVS(Linux virual server)
linux·运维·lvs
xiaoliuliu123451 小时前
CentOS 7 安装 gcc-4.8.5-44.el7.x86_64.rpm 详细步骤(含依赖解决)
linux·运维·centos
青桔柠薯片2 小时前
Linux软件编程:线程和进程间通信
linux·开发语言·线程·进程