Linux (CentOS) Increased delete users

Source: Internet
Author: User

How to increase the deletion of normal user accounts under Linux terminal
Want to know the user information under Linux, the main two files:/etc/passwd and/etc/shadow

I'll talk about it today. Creating and deleting users with commands

Add Users
Typically two steps to increase the user name and the specified user password

[Email protected]/]# useradd test2[[email protected]/]# passwd test2changing password for user test2. New UNIX Password:bad Password:it does not contain enough DIFFERENT charactersretype new UNIX Password:passwd:all Authen Tication tokens updated successfully. #下面这个命令是为用户指定家目录的 [[email protected] home]# useradd test5-d/home/t# More detailed parameters man Useradd


Delete User
Delete the user is relatively simple, the default does not add parameters, the user's home directory will not be deleted,
To remove home directories, add the-R parameter

Userdel test2 [[email protected] home]# ls/homelele  swap  t  T4  test2  test3# Plus-r parameter can also delete home directory [email protected ] home]# useradd test6[[email protected] home]# ls/homelele  swap  t  T4  test2  test3   Userdel-r Test6[[email protected] home]# ls/homelele  swap  t  T4  test2  test3

Linux (CentOS) Increased delete 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.