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.

相关推荐
南境十里·墨染春水15 分钟前
Linux学习进展 进程管理命令 及文件压缩解压
linux·运维·笔记·学习
航Hang*21 分钟前
第2章:进阶Linux系统——第4节:配置与管理NFS服务器
linux·运维·服务器·笔记·学习·vmware
橘子编程22 分钟前
操作系统原理:从入门到精通全解析
java·linux·开发语言·windows·计算机网络·面试
亚空间仓鼠1 小时前
OpenEuler系统常用服务(三)
linux·运维·服务器·网络
信工 18021 小时前
rk3568-Linux应用程序和驱动程序接口
linux·驱动开发·rk3568
倒酒小生2 小时前
4月7日算法学习小结
linux·服务器·学习
木子欢儿2 小时前
KasmVNC 指南:高性能网页原生 Linux 远程桌面方案
linux·运维·服务器
luoqice3 小时前
嵌入式linux用nfs挂载ubuntu目录的配置步骤
linux
我科绝伦(Huanhuan Zhou)3 小时前
分享一个很实用的K8S巡检脚本
linux·docker·kubernetes
Net_Walke3 小时前
【Ubuntu】共享文件夹 /mnt/hgfs 下不显示问题解决
linux·运维·ubuntu