Iv. Linux/UNIX operating command accumulation [chmod, chown, tail], chmodchownIn Linux/UNIX, users often use the text interface to set the system or operating system. The author is constantly in touch with this command during his work, therefore,
After studying Linux user management for a long time, I would like to share with you that you have certainly gained a lot after reading this article. I hope this article will teach you more things.I. Permission control mechanism
Linux is a
Linux File Permission, Linux File Permission
To learn about this chapter, you must understand the following three concepts:1. Owner2. Group3. OthersAfter understanding these three concepts, we will learn the attributes of the file. What are the
Create a new userModify the user's personal settingsPermission settings for the file directoryTwo important documents:passwd and Group Create a new userSetting up a new user consists of two steps, the first step is to use the Useradd command to
First, the role of users under Linux classification
Superuser: Has the highest administrative rights, the default is the root user
Normal User: Has the right to log on to the system, can only access and modify files in their own
One. Chown commandThe "chown" command changes the owner of the file and the user group. Each file belongs to one user group and one user. In your directory, use "Ls-l" and you will see something like this.[Email protected]:~# ls-lDrwxr-xr-x 3 server
For more secure storage of files, Linux gives different permissions to different files, each with the following three permissions :
Owner permissions: What the file owner can do
Group permissions: Actions that can be made by the user
The syntax format for the Chown command is: chown [Options] User or group file 1[file 2 ...] The user can be a user name or a user ID. A file is a space-separated list of files for which you want to change permissions, and you can use wildcard
Each file and directory in a Linux system has access permission to determine who can access and manipulate files and directories in any way.
File or directory access is divided into read-only, write-only and executable three kinds. In the case of a
Basic operations for files (bottom) file propertiesfileCommand syntax>$ file file0 [file1 file2 ...]fileThe command is used to confirm the type of file.Linuxunder, the type of file is not usually determined strictly by file extension, especially if
1.chmod commandChmod is a very important command that changes the access rights of a file or directory. Users use it to control access to files or directories.1.1 Text Setting methodchmod [who] [+ | - | =] [mode] File nameWho's value:
U:
Security for Linux1./ETC/PASSWD file/etc/passwd filefield contains the following information:Login user NameUser passwordUID of user account (in digital form)Group ID (GID) of the user account (in digital form)Text description of user account
Linux (3) _ File Permission, system search, text editor, and linux Text Editor
1. Understand file permissions and their allocation
2. Have the permission to view files and directories.
3. Master the permission text representation and Numerical
Example of SU:
Su switches to the root user by default without adding any parameters, but does not go to the root user's home directory. That is to say, it is switched to the root user, however, the root logon environment is not changed. You can
I. CHOWN command
Purpose:Change the file owner or group.The command is composed of the word change owner.
Example:
1. Change the file owner:
Chown Jim program. c
The owner of the file program. C is changed to Jim. As the owner, Jim can use
Chgrp command
Function: Change the group to which a file or directory belongs.
Syntax: chgrp [Option] group filename?
This command changes the user group to which the specified file belongs. The Group can be either the user group ID or the
An operating system is essential to a computer. However, Linux is developing very rapidly and is catching up with Microsoft. Here we will introduce the knowledge of Linux, so that you can learn how to use Linux. Today I will talk about Linux chgrp
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.