
ALX-9000 (Linux based PAC) User Manual version 1.0.0 Page: 51
Copyright © 2024 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
3.1.8.
Linux Command “chmod”
chmod: change authority of file
chmod ??? file -> ??? means owner: group: all users
For example
:
7 5 4 -> 111(read, write, execute) 101(read, write, execute) 100(read, write, execute)
The first number 7:
owner
can read and write and execute files
The second number 5:
group
can only read and execute files
The third number 4:
all users
can only read files
root@icpdas:/tmp#
chmod 754 test.log
root@icpdas:/tmp#
ls -al test.log
-rwxr-xr-- 1 root root 7 Apr 11 10:34 test.log
root@icpdas:/tmp#