chmod

Permissions

Examples

Read, Write and Execution for User

chmod u=rwx {file}

7 = 4 + 2 + 1

      ugo 
chmod 700 {file} 

Read for User and Group

chmod ug=r {file}
    
      ugo
chmod 440 {file} 

More open mode

chmod ugo=rwx {file} 
chmod a=rwx {file}    
chmod 777 {file} 

Web Server

Files: 644
Directories: 755

Tags linux command

Back