Linux Basics Tutorial:/etc/default/useradd file

Source: Internet
Author: User

In the/etc/default/useradd file, add the user rule file for the setting.

1 # useradd defaults file

2 group=100 # User group ID

3 Home=/home #把用户的家目录创建在/home.

4 Inactive=-1 #是否启用帐号过期停权, 1 means not enabled.

5 expire= #帐号终止日期, no setting indicates not enabled.

6 Shell=/bin/bash #所用SHELL的类型

7 Skel=/etc/skel #默认添加用户的目录默认文件存放位置. That is, when users add users with Useradd, the files in the user's home directory are copied from this directory.

8 Create_mail_spool=yes #是否创建用户邮件缓冲, yes means create

Linux Basics Tutorial:/etc/default/useradd file

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.