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.

相关推荐
南烟斋..42 分钟前
Linux系统编程核心知识指南
linux·算法
森旺电子1 小时前
Linux指令快速记忆
linux·运维·服务器
weixin_516023072 小时前
电子阻止本领 electronic stopping power
linux
开开心心就好2 小时前
免费无广告卸载工具,轻便安全适配全用户
linux·运维·服务器·网络·安全·启发式算法·1024程序员节
硬核子牙2 小时前
ebpf检测Linux系统要来了
linux
↘"LYong2 小时前
Centos升级Redis(7.4.1 ---> 7.4.6)
linux·redis
bedynamic2 小时前
Ubuntu虚拟机磁盘空间不足解决方案
linux·ubuntu
我不是稻草人2 小时前
Centos共享Mac文件
linux·macos·centos
乌萨奇也要立志学C++2 小时前
【Linux】线程同步 条件变量精讲 + 生产者消费者模型完整实现
java·linux·运维
澄澈青空~2 小时前
病毒木马侵入系统内核的底层运作机理
java·linux·服务器