Linux command--usermod

Source: Internet
Author: User

  1. Command format:

    usermod [Options] User name

  2. Command function:

    Modify user account Properties

  3. Common options:

    - u Modify UID number of user account

    - D Modify the user host Directory

    - e Modify user account expiration time

    - s Modify user login Shell

    - g Modify user base Group

    - g Modify user Attach Group

    - l change user name

    - l Lock user account

    - u unlock user account

  4. Common examples:

    Example one: change user account Zhangsan to Lisi

    Command: usermod-l Lisi Zhangsan

    Description: The option "-L" followed by the modified name, and the first name before the change in the last


    Note: Usermod inside the lock and unlock the user's options are uppercase, to distinguish it from the options in the passwd command, the other options are the same as the Useradd command described earlier

This article is from the "Shiyu" blog, make sure to keep this source http://928004321.blog.51cto.com/10707688/1731547

Linux command--usermod

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.