Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ File permissions under Linux     - jobs command example (Linux)

- 127.0.0.1 and localhost difference (Server)

- Oracle background processes daemons (Database)

- Linux how to prohibit the use of Ping command (Linux)

- CentOS install Redis (Database)

- SQL Server automatic backup script (Database)

- Spring Data JPA call a stored procedure examples (Programming)

- C ++ Supplements --new delete overload (Programming)

- Oracle to create an external table (Database)

- Eclipse distributed management using GitHub project development (Linux)

- HAProxy performance under high concurrency (Server)

- First start with Kali Linux 2.0 (Linux)

- Nine trick to let you speed up the old machine running Ubuntu Linux (Linux)

- Java MD5 encryption implementation (Programming)

- Linux server Php injection prevention (Linux)

- Oracle view object space usage show_space (Database)

- Analysis of C ++ exception mechanism (Programming)

- How to disable IPv6 in the CentOS 7 (Linux)

- Linux system security settings (Linux)

- MyCAT easy entry (Database)

 
         
  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:      
 
- Use PuTTY to access the virtual machine Linux under Windows xp (Programming)
- Python, and / or (Programming)
- Docker build their own private warehouses (Linux)
- Android realize RippleEffect water (Programming)
- Redis 3.0.3 Cluster Setup (Database)
- Linux system security configuration (Linux)
- C ++ implementation of the list of basic operations and test cases (Programming)
- 22 Port weak passwords and SSH connection program of the Linux server (Linux)
- Solve ORA-01012: not logged on (Database)
- Linux 101 hack book reading notes (Linux)
- JavaScript function closures Quick Start (Programming)
- Oracle RMAN repair logical bad blocks (Database)
- iTerm - let your command line can also be colorful (Linux)
- LAN in Ubuntu shared folders to Windows (Linux)
- Physical structure and process disk IO (Linux)
- Memcached distributed caching (Server)
- CentOS 7 Configure logging (VirtualBox) (Linux)
- Ubuntu install Eclipse for C / C ++ and related configuration (Linux)
- Chrome plug-in management, online-offline installation, part of the plug presentations (Linux)
- Upgrade Goldengate 11.1.1.1.2 to 11.2.1.0.1 (Database)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.