Cainiao-basic simple linux (3)-General Linux technology-Linux technology and application information. For details, refer to the following section. By goodls
Hello everyone. I am here again. Learn linux with everyone. If you often read the text I wrote, you have learned how to create basic linux directories, create files, and mount and uninstall CDs in linux.
Now, let's explain how to manage users.
Linux, as a multi-user and multi-task operating system, uses the permission ry mechanism of the user account. An independent user account is provided for each user in the system. Users use their own accounts and passwords to log on to the system. Therefore, the linux system can be conveniently managed by every user.
1 passwd file
All user accounts in Linux are saved in the "/etc/passwd" file, which is a text file and can be read by all users in the system.
2shadow File
Is a file that saves the user's password and information in linux.
3. Add a user
Adduser
Example: useradd lll
A new user named lll is added.
4 passwd
Add User Password
For example, passwd lll adds a password to the end.
5. delete a user
Userdel
Example: userdel lll
In this way, the user lll is deleted.
Well, we also learned how to create our own users in the linux system, as well as how to create directories and files. In linux, data is stored in directories.
This is a good idea for beginners. Let's have a good understanding of what we have explained above.
Next, we will learn more difficult linux User attributes and group management.
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