Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ File permissions under Linux     - LVM management parameters commonly used commands explained in detail (Linux)

- Linux use additional rights (Linux)

- Analysis of Java keyword final (Programming)

- Linux process group, session daemon (Linux)

- ImportTsv-HBase data import tool (Database)

- CentOS and RHEL installation under GAMIT10.6 (Linux)

- The first IOS Objective-C program (Programming)

- Modify grub solve computer startup error: ERROR 17 (Linux)

- Teach you the Ubuntu Server enabled SSH multifactor authentication (Server)

- jobs command example (Linux)

- CentOS6.3 build a Python 3.3 environment to access Oracle 11gR2 (Database)

- Efficient Linux Shell - Shell special characters Summary (Linux)

- CentOS6 installed Tomcat (Server)

- Copy and paste in Linux terminal and Vim (Linux)

- Deep understanding of C # generics (Programming)

- Linux / CentOS 7.0 installation and configuration under Tomcat 8.0 (Server)

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

- Management DB2 logs (Database)

- Oracle 11g partition maintenance (Nice) - Truncating And Partitions (Database)

- VirtualBox CentOS is configured as a local disk mirroring software source (Linux)

 
         
  File permissions under Linux
     
  Add Date : 2018-11-21      
         
         
         
  Learning Linux, the Linux system to find files than Windows Rights Management is very strict.

Create a new group under Linux: groupadd group name

Linux newly created user: useradd username

Create users and groups: useradd -g group name Username

To view the user information: cat / etc / passwd or vi / etc / passwd which the cat command can only be viewed, not modified permissions, vi command to view existing permissions have modify permissions (ie read / write privileges)

eg: Create two groups: A and group B

Create two users: a and b

Wherein a user belongs to group A, b user belong to group B.

B When the user wants to access a user's files, you must allow a user to the appropriate authority.

Using the command: chmod 777 a

Then use: ls -l will appear

drwxrwxr-x this string of characters, the first of which is the file type, followed by a group of three, respectively, for the current user privileges, the current set of user permissions, user rights of other groups.

w: writable represent value: 2

r: readable representation value: 4

x: represents executable Value: 1

Where 777 represents all users have read and write permissions to perform, because 1 + 2 + 4 = 7, is not it. Nobody said more difficult to understand. .

When the user wants to b Group A, it is necessary to use administrator privileges: usermod -g A b.
     
         
         
         
  More:      
 
- SaltStack installation and testing (Server)
- iOS in the event delivery and the responder chain (Programming)
- About Leetcode on Binary Tree Algorithm summary (Programming)
- Ubuntu 14.04 LTS installed Hadoop 1.2.1 (distributed cluster mode) (Server)
- ThinkPad X201i installation notes Debian 7.5 (Linux)
- C ++ Learning Notes: references (Programming)
- Let Git variety of colors and custom log format output (Linux)
- How to configure chroot environment in Ubuntu 14.04 (Linux)
- impdp error ORA-31631, ORA-39122 (Database)
- Linux Telnet access Windows 7 configuration procedure (Linux)
- Python variable type (Programming)
- Security enhancements in Ubuntu ssh service (Linux)
- To restore the last time applications running when Ubuntu user log in again (Linux)
- TOAD connect DB2 error SQL1460N solve (Database)
- Linux kernel compilation, the configuration of the motor drive (Programming)
- Eclipse remove all comments and code spaces (Linux)
- Automatic Clear date directory shell script (Linux)
- What is Java EE (Programming)
- To setup NOTRACK and TRACK of conntrack in iptables (Linux)
- The next key to install Linux bash script PowerShell (Linux)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.