How to use Ubuntu command management authority

  

Linux rights management is a professional knowledge, there are many ways to manage Linux permissions, of course, you can also use commands to achieve this purpose. This article uses Ubuntu as an example to introduce how Ubuntu uses command management permissions.

1.chmod

The first way

chomd [{ugoa}{+-=}{rwx}] [file or directory]

u represents the user to which the file belongs

g represents the user group to which the file belongs

o represents the guest

a represents all users

+-= respectively indicates an increase rights, privileges or to give permission to reduce

so that all the user has write access to the file t2.tmp:

The second way:

chmod [mode = 421 ] [file or folder]

4 means read permission

2 means write permission

1 means execute permission

For example: let the user of the file have All rights, owning group has read and execute permissions, others have execute permissions, so you can set:

understanding of the rwx:

under Previous 12 One page total 2 pages

Copyright © Windows knowledge All Rights Reserved