Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Relationship between Linux permissions with the command     - How to ensure the Linux SSH login security with one-time password (Linux)

- Linux iostat command example explanation (Linux)

- Debian 7.7 Installation and Configuration (Linux)

- Linux usage in echo (Linux)

- Oracle EBS R12 for Linux installation (Database)

- Spacewalk Linux system configuration and installation (Linux)

- VirtualBox installation enhancements let the mouse move and share CentOS 6.4 (Linux)

- Firewall types and instructions (Linux)

- Oracle 11g R2 RAC RMAN backup script example (Database)

- Change the kernel boot sequence after CentOS 7 kernel upgrade (Linux)

- Oracle Data Pump Example (Database)

- About enhanced Linux / Unix server system security program (Linux)

- Linux kernel RCU (Read Copy Update) lock Brief (Linux)

- Use the vi text editor and copy and paste Linux tips (Linux)

- 17 How to install the Ubuntu 14.04 and Linux Mint Kodi14 (XBMC) (Linux)

- Android Notification (Programming)

- Kafka + Log4j log implement centralized management (Server)

- VMware Workstation + Ubuntu 10.04 Download the Android 2.2 source code (Linux)

- Installation of Ubuntu Make under Ubuntu 15.10 (Linux)

- Ubuntu 14.04 compile and install Apache (Server)

  Relationship between Linux permissions with the command
  Add Date : 2016-10-02      
  Very important! Relations between the authority and command:

We know that Linux permissions for the user account is very important, because he can limit users can read / create / delete / modify a file or directory! In this chapter we introduce a lot of file system management commands, the sixth chapter describes the meaning of a lot of file permissions. In this section of them, we will combine the two, explain what order and under what authority will be able to run it!

First, allowing users to enter a directory as the basic permissions why "can work list":
You can use the command: A transformation such as the command cd working directory;
Directory permissions required: Users need to have at least the directory permissions of x
Additional requirements: If a user wants to use ls to view the file name in this directory, this directory users also need r permission.

Second, the basic user permissions to read why a file in a directory?
Command can be used: for example, discussed in this chapter cat, more, less, etc.
The required directory permissions: users of this directory will need at least x authority;
The required file permissions: Users need to have at least file permission r for the job!

Third, the basic permissions so that users can modify a document why?
You can use the command: For example nano vi editor or the like to introduce the future;
The required directory permissions: users in the directory where the file must be at least x authority;
The required file permissions: users of the file must have at least r, w permission

4, so that a user can create a basic file permissions Why?
Directory permissions required: users in the directory to have w, x permissions, focusing in w it!

Fifth, allow the user to enter a directory and run the command of the basic rights to a directory that?
Directory permissions required: The user must have at least x directory permissions;
File permissions required: user files in the least need permission of x

So that a user can be vbird "cp / dir1 / file1 / dir2" command, please specify the minimum required permissions dir1, file1, dir2 Why?
When you run the cp, vbird to "be able to read the source file and written to the destination file! "So should the second reference point and the fourth point instructions! Therefore, the minimum permissions for each file / directory should be: dir1: at least need to have x permission;
file1: need at least r privilege;
dir2: need at least w, x permissions.

There is a file full name /home/student/www/index.html, the relevant authority file / directory is as follows: drwxr-xr-x 23 root root 4096 Sep 22 12:09 /
drwxr-xr-x 6 root root 4096 Sep 29 02:21 / home
drwx ------ 6 student student 4096 Sep 29 02:23 / home / student
drwxr-xr-x 6 student student 4096 Sep 29 02:24 / home / student / www
-rwxr - r-- 6 student student 369 Sep 29 02:27 /home/student/www/index.html
Will vbird this account (not a student group) can read the index.html this document?
Although the www and index.html is vbird allows permissions to read, but because the root of the directory structure is read layer by layer, so vbird enter / home but can not enter / home / student /, since even enter / home / student are not allowed, of course, can not attend the index.html! So the answer is' vbird not read the content of index.html "Oh!

To modify how that power? In fact, as long as the / home / student permission to modify the minimum 711, or 755 can be administered directly to the Luo! This is a very important concept Oh!
- Using Linux command line and execute PHP code (Programming)
- SELinux multi-level security (Linux)
- The headers for the current running kernel were not found when VirtualBox installation enhancements (Linux)
- Stucts2 values on the page and how the attribute values corresponding to the Action (Programming)
- Ubuntu 14.04 / 12.04 subscribe users to install software Liferea 1.10.10 (Linux)
- Docker use Dockerfile created since the launch of the service support SSH container mirror (Server)
- Linux ban single-user mode to enhance system security (Linux)
- Deepin Tutorial: Depth Description Installer expert mode (Linux)
- Linux performance optimization features Tuned and ktune (Linux)
- Git Getting Started tutorial (Linux)
- Linux Getting Started tutorial: GNU C and Vim will fight the C / C ++ IDE semi-automatic (Linux)
- Install Websphere MB required system rpm package under Linux (Linux)
- Disk Management LVM (Linux)
- Single-node Hadoop installation notes distributed pseudo & (Server)
- Configuring xdebug debugging environment in Ubuntu 14.04 under the PhpStorm (Linux)
- Simple security measures to reinforce the Linux kernel (Linux)
- Ubuntu 32 compile Android 4.0.4 Problems (Linux)
- CentOS7 iptables (Linux)
- The Rabbitmq installation under CentOS 6.4 (Linux)
- Linux System Administrator common interview questions and answers 30 (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.