当前位置: 首页 > news >正文

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

相关文章:

  • 北京网站建设多少钱?
  • 辽宁网页制作哪家好_网站建设
  • 高端品牌网站建设_汉中网站制作
  • pytorch学习笔记6 tensor拼接和拆分
  • ts-node 报错 ERR_UNKNOWN_FILE_EXTENSION
  • XXE-lab-master靶场:PHP_xxe
  • 【生成式人工智能-三-promote 神奇咒语RL增强式学习RAG】
  • 记录|MVS和VM软件使用记录
  • 学习日志8.5--ARP攻击与防范
  • 深入探索Scikit-Learn聚类分析:方法与实践
  • OLAP技术与数据仓库:深度分析与决策支持
  • day_32
  • 中国区域创新能力评价报告数据(2001-2023年)
  • 356_lambda表达式,多段调用,A函数调用lambda-1,然后lambda-1中调用lambda-2
  • 杂谈c语言——3.内存对齐
  • LangChain与JWT:构建安全认证的桥梁
  • idea中修改项目名称
  • 红黑树的概念和模拟实现[C++]
  • Create React App 使用
  • Docker入门(二) - Dockerfile
  • electron原来这么简单----打包你的react、VUE桌面应用程序
  • leetcode388. Longest Absolute File Path
  • Linux编程学习笔记 | Linux多线程学习[2] - 线程的同步
  • Mac 鼠须管 Rime 输入法 安装五笔输入法 教程
  • Python实现BT种子转化为磁力链接【实战】
  • Python语法速览与机器学习开发环境搭建
  • spring-boot List转Page
  • 翻译 | 老司机带你秒懂内存管理 - 第一部(共三部)
  • 来,膜拜下android roadmap,强大的执行力
  • 两列自适应布局方案整理
  • 模型微调
  • 七牛云 DV OV EV SSL 证书上线,限时折扣低至 6.75 折!
  • 如何优雅的使用vue+Dcloud(Hbuild)开发混合app
  • 数据结构java版之冒泡排序及优化
  • 为物联网而生:高性能时间序列数据库HiTSDB商业化首发!
  • 云栖大讲堂Java基础入门(三)- 阿里巴巴Java开发手册介绍
  • 在Unity中实现一个简单的消息管理器
  • nb
  • Hibernate主键生成策略及选择
  • 正则表达式-基础知识Review
  • ${factoryList }后面有空格不影响
  • (01)ORB-SLAM2源码无死角解析-(66) BA优化(g2o)→闭环线程:Optimizer::GlobalBundleAdjustemnt→全局优化
  • (c语言版)滑动窗口 给定一个字符串,只包含字母和数字,按要求找出字符串中的最长(连续)子串的长度
  • (附源码)ssm高校志愿者服务系统 毕业设计 011648
  • (每日一问)操作系统:常见的 Linux 指令详解
  • (十八)devops持续集成开发——使用docker安装部署jenkins流水线服务
  • (转)【Hibernate总结系列】使用举例
  • *(长期更新)软考网络工程师学习笔记——Section 22 无线局域网
  • **PHP分步表单提交思路(分页表单提交)
  • .bat批处理(二):%0 %1——给批处理脚本传递参数
  • .NET 设计一套高性能的弱事件机制
  • .net访问oracle数据库性能问题
  • .net与java建立WebService再互相调用
  • .NET中winform传递参数至Url并获得返回值或文件
  • /etc/fstab 只读无法修改的解决办法
  • /ThinkPHP/Library/Think/Storage/Driver/File.class.php  LINE: 48
  • @Builder用法
  • [2018][note]用于超快偏振开关和动态光束分裂的all-optical有源THz超表——