Linux System Administrator _ basic permissions and ownership-RedhatEnterprise5
Files And Directories are the most important in linux systems. It is often difficult to log on to the system as a root user. Once you use a common user, you will find
2. Rights Management Commands2.1 change file or directory permissions: chmod(1) chmod command
Command name
chmod (change the permission MoDE of a file)
Command path
/bin/chmod
Execute
Before we begin our new content study, we will briefly review the above content:
absolute path: "must be the root directory/write"; Relative path: "Not/write"
special directory:.,..,-, ~, ~ Account needs to be noted;
We already know the importance of file permissions for the security of the system, and also know the relationship between file permissions and users and user groups, then, how to modify the permissions of the file? How many file permissions can we
One user and one group
Let's take a look at the Linux permission and ownership model. We can see that each file belongs to a user and a group. This is the core of the permission model in Linux. You can view users and groups in the LS-l list:
Generally, most enterprises do not have relevant information security technicians and do not conduct security audits and penetration tests on information systems, in addition, the relevant technical personnel often do not have relevant information
in the Linux system, we often need to modify the file permissions, such as to increase the security of the main group of what, or access rights, this is very common, all we need to understand a few three commands: Chown,chgrp,chmod,umask650)
Original: https://www.cnblogs.com/kzloser/articles/2673790.htmlHttps://www.cnblogs.com/danh/archive/2011/01/11/1932975.htmlThe content originates from: Brother Bird's Linux private dishThe links are as follows:File permissions and directory
A user, a groupLet's take a look at Linux permissions and ownership models. We've seen each file belong to a user and a group. This is the core of the permissions model in Linux. You can view users and groups in the Ls-l list:
$ ls-l/bin/bash
-rwxr-
How to change the owner and group of a file under Linux >
Learn to change the owner and group ownership of files and directories using the Chown and CHGRP commands. This tuxfile will give you more insight if you already have the knowledge of file
You can master the following commands for Linux to master various permissions in the operating system.
Permission: All UsersUsage: chmod [-CFVR] [-- help] [-- version] mode file...Note: file access permissions for Linux/Unix are classified into
1. Modify the file user group under LinuxChgrp:change Group, modify the user group to which the file belongs.CHGRP Users Test.logView Ls-l after modification-RWXRWX--- 1 work users 0 June 8 15:46 Test.logIf you want to modify all files and
People who are familiar with Linux's 20 most commonly used commands will know that there are indeed many commands in Linux, however, users who have ever played Linux have never been troubled by so many Linux commands, because we only need to master
In linux, apache is configured to support both phpcgi-Linux Enterprise Application-Linux server application information. The following is a detailed description. If PERL is installed during LINUX installation, you can immediately execute CGI after
LAMP: typical configuration of Linux + Apache + Mysql + PHP-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Debugging environment: Redhat9.0 Apache1.3.29 Mysql3.23.58 PHP4.3.4
I will
What is LAMP? What is LAMP ?, LAMP: short for LinuxApacheMySQLPhp, which is almost the strongest combination of racks. & Nbsp; how to install it? & Nbsp; LAMP Lesson 1: Introduction and installation (thanks to Linuxsir's dsj) & nbsp; Linux + Apache +
5. chown and chgrp commands
We can guess what they do from their names, but these two commands require root permissions.
The CHOWN command is in the format of user: group in the middle of chown User: group file. A part can be omitted as needed. For
In Linux, the CHMOD/chgrp/chown folder permission is set to 1777. This number indicates that all users can create files in this directory, but only the file owner can delete the files.
First, let's take a look at the file attributes,In the shell
When "Permission deny" appears on your screen, don't worry. "Permission setting is definitely incorrect! (The following is an excerpt from Chapter 6 of laruence's Linux private House dish. Linux file permission and directory configuration. 2. Linux
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.