Linux Account and identity management (2)

Source: Internet
Author: User
Article Title: Linux Account and identity management (2 ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Userconf

In any case, it is not convenient to add groups and accounts using the useradd and groupadd commands! Is there a way to add new users by comparing graphical interfaces? Haha! Of course, you can use userconf in Mandrake and Red Hat! Assume that you have installed the Linuxconf package, so it naturally contains the userconf package! Therefore, if you enter userconf as the root user in the Command column mode, the following error occurs:

Currently, the following functions are used:

User accounts

Group definitions

Change root password

Of course, we only care about User accounts ?? Why? ? Poor? Window vertebra nanoxyl ?? Too many? AB key to move the cursor to the bottom of the Quit and Help button! Next, we will mention the two most commonly used functions in account management: "correction and management of existing accounts" and "add an account !』

View the content, correction, and management of an existing account:

In, press the button above to move the cursor to the User accounts Section, and then press Enter! The following figure is displayed:

In the above picture, we can find that every useful account is on the top, and its main information is listed on the top! Of course, all the information is in/etc/passwd !』 That's right! So you only need to know the meaning of the passwd file, so it's easy to understand what it means! Well, if I want to modify the user information that already exists in test, I will directly move the cursor over test and press Enter. The following figure is displayed:

You will find that your cursor is in the Base info on the right. You can move the cursor and modify it! For example, if you want to modify the group, you can directly move it to the users, repair, modify, and so on! Similarly, the changes to HOME (HOME Directory) and shell (that is, the Command interpreter column) are directly moved by the cursor and then revised! This should be difficult! But what if I want to change the password? Then you must use the button, move to the Passwd button, and press it to set the password!

After the modification, the account graph is displayed. You can continue to observe other accounts!

Add account:

The new account is added! In the account graph, press Tab twice to move the cursor to Add. Press Enter:

In this screen, you only need to enter the Login name. Other things will be automatically set by the system for you (with (opt) the system will follow/etc/login by itself. defs and/etc/defaults/useradd are set by yourself !). However, if you want to classify users, you 'd better set them up! Success! What is classification? Take me as an example. The host of our company has opened the account service to members of our research center and friends outside of our office. Since external accounts only provide mail services, our research center members include the work that can be done on all hosts! To prevent improper management in the future, identity control for people on both sides (the simplest way is to identify by UID or Group) is much more important! Okay! So what do you need to know in the userconf program?

Login name: Enter the account (ID) of the user to be added. Do not use uppercase characters !;

Full name: this is the Full name of the user of this account. This location is dispensable and will not be affected!

Group: used to specify the group to which this ID belongs. Generally, laruence divides users on my machine into several categories and gives them different groups for easy control!

Supplementary groups: in addition to the main groups, Linux also provides your other support groups! However, you do not need to set this parameter. If set, the modified file is actually/etc/group ??? /P>

Home directory (opt): Specifies the Home directory of the account user. If this parameter is not specified, the default user's home directory is in/home/userID. However, if your hard disk capacity is not large enough or you want to move someone to a directory, you can change it directly here ??? /P>

Command interpreter (opt): This is the user's preset Shell. We usually use BASH in Linux, so we don't need to change it;

User ID (opt): Note that this ID is not the ID of the previous login. This ID is the Uid number mentioned above, you can set an ID greater than 500 and not repeated with other accounts, or you can set it automatically by the system;

OK! After the setting is complete, press the "Tab" key and select Accept and press Enter. In this case, you will be asked to Enter the password, as shown in the figure 13-1-4. Enter the password required by this account. Note that the password is usually limited:

The password cannot be the same as the account;

Try not to use the character strings in the dictionary for the password;

The password must exceed 8 characters;

This is a major limitation. However, because you are an administrator with unlimited power, the password format is "unlimited" (although there is no rule, there will be some error messages in settings, but it will not affect your settings !). After the password is entered, the new password is added!

Basically, there are many functions of userconf! However, he only displays the/etc/passwd file as a chart! There is nothing new! So ??? Why? Ya ya? Why are you kidding me? Hammer? That's right for vi! Userconf is not available yet!

--------------------------?

Password Management and setting:

Let's talk about the important concept of password! You must pay special attention to the fact that, if your host is intruded into, the first intrusion point of the other party will naturally be the "password" of the account above your host. Therefore, if your password is strictly defined, the other party will naturally not be able to guess your password, and it will naturally be more secure!

Currently, some of the frequently used password cracking software for Cracker are generally called dictionary attack methods and so-called brute-force attack methods. Literally, the dictionary attack method is a program that inputs any word or phrase found in the dictionary, and then uses this program to try to crack your password one by one, don't think this speed seems very slow. In fact, today's computer computing speed is too high, and the dictionary attack method is basically very efficient! Another "brute-force attack" method is to directly use any buttons on the keyboard that can be used, and then combine them with one, two, three .... Password Combination to crack your password! This method is really slow, if your password combination is 6 ~ If it is more than 8 characters long, it takes a long time for the brute force attack method to crack it!

In terms of the above dictionary attack method and brute force attack method, do you know how to set a good password? Yes. You 'd better need the following features for your password:

The password contains several special characters, such as $ # @ ^ & * and the number key, the more difficult the other party is to use the existing software to crack the attack!

Use English letters in combination with uppercase and lowercase letters;

The password must be at least 6 ~ More than 8;

A combination of letters or numbers with many special characters!

This type of password is really not easy to crack, but unfortunately it is also easy for you to forget ?? Therefore, we recommend that you use words that are meaningless to others but have special meanings for you! For example, I often mention that I love my wife! Password like "I & Mywife * ^! It's not easy to guess, it's easy to remember! Is there a "terrible password? Yes. The following passwords are terrible:

Common English words: for example, party, park, andyliu, linux, paper, etc! It is easy to be cracked by dictionary attack!

The names of people around you, such as spouse and children, Tom, andy, eric, and so on, are not good!

Simple Date: for example, your birthday! Not good enough!

Any number or other information related to you, such as your ID card number or bank account;

VBird has seen the situation that uses the account as the password directly! Really terrible ?? Good to guess?

[1] [2] [3] [4] [5] Next page

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.