- Advanced Infrastructure Penetration Testing
- Chiheb Chebbi
- 135字
- 2021-06-24 19:12:59
The chmod command
To change the permissions of a file, you need to use the chmod command, chmod <letters> <file or directory>. You can also use an octal format instead of letters, chmod <octal format> <file or directory>. To convert the permission from the letters format to the octal format, you need to convert every permission into a value:

Now, let's take an example and see how to use the chmod command with the octal format in an easy way. Let's suppose that we need to give the user the permission to read and write, the group only to read, and others only to execute. Then, the octal format will be 641, because:
- User: Read + Write = 6
- Group: Read = 4
- Other: Execute = 1
The final command will be: chmod 641 <file>
推薦閱讀
- pcDuino開發(fā)實(shí)戰(zhàn)
- Windows Server 2019 Cookbook
- vSphere Virtual Machine Management
- Ubuntu Linux操作系統(tǒng)
- 混沌工程:復(fù)雜系統(tǒng)韌性實(shí)現(xiàn)之道
- Moodle 3.x Teaching Techniques(Third Edition)
- Mastering Reactive JavaScript
- Application Development in iOS 7
- Linux基礎(chǔ)使用與案例
- Learning BeagleBone
- Drupal 7 Cookbook
- Office 365 User Guide
- Learning IBM Watson Analytics
- Java EE 8 High Performance
- 微軟360度