Thursday, September 15, 2011

the Linux rights of files and directory


 
1. the "file1" can be a file or directory

          |---- owner
          ||----- group
          |||------- other users
   chmod  467  file1    
  
   1 = Execute
   2 = Write
   4 = Read
  
   3 = 2+1   can Write, Execute
   5 = 4+1   can Read, Execute
   6 = 4+2   can Read, Write
   7 = 4+2+1 can Read, Write, Execute