, chmod (change mode ). .
Linux 3 3 (read, write execute , ), , others .
, ls -l
-rw-r--r-- 1 root root 0 Mar 10 11:05 freepbx_menu.conf
, - root, , , , others.
- r (read) - ,
- w (write) - ,
- x (execute) - \,
:
- r (read) - 4
- w (write) - 2
- x (execute) - 1
. rwx 7 (4+2+1). , , :) :
- -
- -
- - others
, , :
chmod 440 file.txt
, , :
chmod 777 file2.txt
, , .
umask
umask - 0022, . 0666, - 0777. .
0666, rw-rw-rw-, 0022, 0644 rw-rr--.
0755, rwx-r-x-r-x.
umask xxxx . :
umask 0077

, rw-r--r-- rw-------.
chmod
chmod - .
, u, g - o. a.
- chmod u+x %% - , execute user;
- chmod u+r,g+x %% - ;
- chmod u-rx %% - - , - , ;
- chmod a+rx % % - , ;
- $ chmod --reference=%1% %2% - 1 2;
- chmod -R 755 %%/ - ;
- chmod u+X * - , ;