Page 42 - RHEL8 BOOK
P. 42

Permission parameters used with chmod command
          Category             u      g       o
          Operators            +       -      =
          Permissions          r      w       x
          Weight               4      2       1
          Applying permission to File or Directory
          [root@comp1 ~]#chmod <permissions> <file/direccory>
           Permission - Absolute
           Applying permission to Owner (u), Group (g)
          & Others (o) for File1

          chmod    4 5 6                      file1





                  u             g             o

               4=r     4+1=rx      4+2=rw

          Example of Permission - Symbolic
          Applying permission to Owner (u), Group (g)
          & Others (o) for File1

          chmod u=r,  g=rx,o=rw file1






                      u        g       o


          File permission mode: we can assign to the file / directory in 2 modes are
          1.     Symbolic mode
          2.     Absolute mode

          1.  Symbolic Mode: - In this mode we can assign the permission through character, like read permission
          can have identified with the “r” character write “w” and execute with the “x” character.

          2. Absolute mode: - In this mode we can assign the permission through numbers like read is 4, write is 2
          and execute is 1









                                                       S. Pradhan
                             (MCA, MBA-IT, BCA, CCNA, MCSA 2012, RHCE, ETHICAL HACKING)
                                             Email Id:-spradhan.iiht@gmail.com
                                                           42
   37   38   39   40   41   42   43   44   45   46   47