Basic Settings for Linux users

Source: Internet
Author: User

Linux has super Administrators and ordinary users, each user when the basic settings after the establishment can be tested by the following explanations

    • Create a normal user
[Email protected] ~]# useradd vforbox [[email protected] ~]# grep ' ^vfor '/etc/passwd                                        //See if Add success vforbox:x:502:502: :/home/vforbox:/bin/bash
    • Basic settings for new users with/etc/login.defs and/etc/default/useradd two files when we create new users
[[email protected] ~]# cat/etc/login.defs           //View some basic properties of the user Mail_dir        /var/spool/mail              //mailbox default directory Storage Pass_max_   days 99999     //password need to change the time pass_min_days   0      //password how long to change Pass_min_len    5     //password Minimum length pass_warn_age   7     //password expires days before sending a warning message                   uid_min        //Default account start minimum UID number Uid_max                 60000//MAX UID limit gid_min                   500        ///Default account start minimum number of GID Gid_max                 60000//MAX UID limit create_home Yes//     whether to establish user root directory, default is yes, otherwise no no
[[email protected] ~]# Cat/etc/default/useradd      //view user default settings # useradd defaults filegroup=100//Default user group for 100home=/ Create_home//Default user root directory, the established directory Inactive=-1//Whether start, 1 means start Expire=shell=/bin/bash//default Shellskel=/etc/skel// Default root directory content Create_mail_spool=yes//whether to create a mailbox directory Yes Yes, no no

Basic Settings for Linux users

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.