Linux useradd命令
创始人
2024-11-14 21:33:33
0

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 adduser instead. 

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 the user'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 the user'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.

相关内容

热门资讯

黑科技app(微扑克有保险吗)... 黑科技app(微扑克有保险吗)外挂透明挂辅助神器(透视)其实真的有挂(有挂辅助)-哔哩哔哩;1、下载...
重大来袭!约局吧软件有辅助吗(... 重大来袭!约局吧软件有辅助吗(透视)AI教程(2021已更新)(哔哩哔哩)1、很好的工具软件,可以解...
黑科技好友房(WePoKe)德... 黑科技好友房(WePoKe)德州ai智能辅助是什么(透明挂)总是真的有挂(2026已更新)(哔哩哔哩...
黑科技教学(德州最新辅助器)外... 黑科技教学(德州最新辅助器)外挂透明挂辅助工具(透视)都是有挂(有挂透明挂)-哔哩哔哩1、进入游戏-...
重磅来袭!德扑之星ai代打真假... 重磅来袭!德扑之星ai代打真假(透明挂)透视教程(2026已更新)(哔哩哔哩)1、金币登录送、破产送...
黑科技了解(WePoKe)德州... 黑科技了解(WePoKe)德州游戏辅助器(透视)真是是有挂(2026已更新)(哔哩哔哩);1、黑科技...
黑科技ai(德扑之星软件真的有... 黑科技ai(德扑之星软件真的有辅吗)外挂透明挂辅助器(透视)确实是有挂(真的有挂)-哔哩哔哩1、德扑...
推荐十款!!德州ai人工智能(... 推荐十款!!德州ai人工智能(ai代打)安装教程(2023已更新)(哔哩哔哩),您好,德州ai人工智...
辅助黑科技(WePoKe)微扑... 辅助黑科技(WePoKe)微扑克智能助手(黑科技ai)竟然真的是有挂(2022已更新)(哔哩哔哩)微...
黑科技好牌(微扑克ai辅助器苹... 黑科技好牌(微扑克ai辅助器苹果版)外挂透明挂辅助神器(透视)切实真的有挂(有挂教程)-哔哩哔哩;1...