Skip to main content

PERMISSION OF LINUX



~~~~~~~~~~~~~~~~~~~~~~~~~~PERMISSIONS~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Permissions:- permissions on a user are of two types_______________________________
                                                             Permissions    owner        group   permission           umask
          1_Directory permissions.   |  drwxr-xr-x      root            root            755             0022
          2_File permissions.             |  -rw-r--r--                   root            root            644                   0022
                                                          A FILE HAVE NOT THE EXECUTE PERMISSIONS BECOUSE WRITE
Read – {4}                             PERMISSION FOR FILE ACTS AS A EXECUTES PERMISSION.
Write –{2}              +  = 7    which is the full permission for the file or the directory. 
Execute{1}
         
1_    r:- read permission.    {4}    |for directory     drwxr-xr-x        
2_    w:- write permission.  {2}    |
3_    x:- execute permission.{1}   |         this {d} shows that this permission is for directory  
4_     -:_   no permission.    {-}     |for file                -rw-r--r--  this is the permission for file.


Now permission of a file is applied on the {user}, {group} and {other user} they have all different permissions to understand below _________________........

          Take a directory it has 9 digit permission like :--------
Directory                for Users            for Groups               for Other users     defaults     permis..
Redhat                d       rwx                      r-x                                 r-x              per..  7 5 5
                                      421                       421                                421              for     U G O                                                                                                                                    umask0  2  2                                                                                                                                                                           this {d} shows     {7} full permission   {5} read, execute for    {5} read , execute for the other               this is a directory for the users/ owner        all groups                      users which are not member                                                                                                           of any group.
File                                 for Users       for Groups                           for Other users          default permission
server                  {-}      rw-              r--                                         r--           per ..  6 4 4
                                         421             421                                   421         for     G U O         
                                                                                                                       Umask  0 2 2
                                                                                                                                                                                                          At first position {-}   read, write per..    only read for all groups               only read for all other users
            Shows that it’s a file   for users/owner          {{{{ }}}}}}}}}}}}}}}}}}}                                                                            

EXPLAIN  SOME OF HOW THE PERMISSIONS APPLIED ____________________________
                  
            ROOT USER OR                               GROUP USER OR ALL                   OTHER USERS WHO NOT BELONG THE OWNER OF THE FILE             MEMBERS OF THE FROUP                   TO ANY GROUP.

 
 
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

These are the simple permissions for a file or directory by a user for groups and other user

Now how to apply permissions
                   Go to the directory in which directory or file to which permissions are applied then run the commands                       
  Like we have to apply permission on /data file
          # cd /
       /]# chmod 777{ or any of permission u wants} file or dir.. name                        like

       /]# chmod 744 /data
Or
       /]# chmod 644  myfile

OWNERSHIP to give ownership of a file or directory to any other user BY ROOT ONLY
          # chown     pop    [filename]
                            
                                                Username

The user who  makes he file he has the full rights on his file he can do any thing with his file.

And if root write {0} in the permissions at any permissions place. Then user belogs to thet permission even can`t open his own file because {0} refers to no permission 
         
This security of {0} also acts on the groups level security if __0777 then users under group can do nothing.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

The default roots id is {0}
Every user has its own primary/private group when we add this into a group then this group is its secondary group. And then this user is member of both of the groups primary  and secondary.
 After add it to secondary group then the group level security is applied on this  that is as _____

THSES PERMISSIONS IMPLIMENTS ONLY ON THE GROUPS AND USERS UNDER GROUPS.

1_ SUID____ Set User Identification.  {4}  
2_ SGID___  Set Group identification {2}
3_STICKBIT _for restriction to delete       {1}


These permissions acts only on the groups and the users under the group its add as a first digit for the permissions  like

To give a user under a group to read permission only on the other members of this group
File is pop

          # chmod     4777  pop


Comments

Popular posts from this blog

linux password app

                            BREAK LINUX PASSWORD            Suppose simple login                                     Login root                                           Password ******                 [root@localost~]#      This is the simple login the Linux when we know the password but if we not know        __________________________________________...

linux find file

FILE SYSTEM OF LINUX_____________________________________ THERE ARE SIX [6] TYPES OF FILE SYSTEMS FOR THE LINUX. 1_EXT3_____EXTENDED FILE SYSTEM 3. 2_EXT2_____EXTENDED FILE SYSTEM 2. 3_VFAT_____VIRTUAL FILE ALLOCATION TABLE. 4_LVM _____LOGICAL VOLUME MANAGEMENT. 5_RAID_____REDUNDENT ARRAY OF INEXPENSIVE DISK. 6_SWAP____SWAP IS THE VIRTUAL MAMORY FILE SYSTEM FOR LINUX. EXPLANATION _________________________________________________________ 1_EXT3____IT IS VERY SECURE FILE SYSTEM. WE CAN NOT RECOVRE THE                      DATA IF WE FORMAT THE PARTITION WITH EXT3. NO DATA RECOVRY POSSIBLE. 2_EXT2____IT IS NOT SO MUCH SECURE FILE SYSTEM. WE CAN RECOVER                       DATA EVEN AFTER THE FORMAT WITH EXT2.       ...

Password Tools

How to   windows password break tools and while not tools What is windows? Windows is associate OS windows is associate inviroment making by Microsoft windows have to be compelled to learn the DOS command mouse is employed to navigate the menus tab buttons. How to password break while not tools 1.you can begin our pc 2.press f8 button 3.and then attend the safe mode 4.you can attend the safe mode u amendment the admin countersign and set the new passwd and revel in. How to countersign break tools I will tell u the computer code it's a best computer code for knowledge recovery and countersign recovery. Wondershare   Wondershare could be a live windows you'll be able to countersign break and knowledge recovery  1.create a wondershare bootable pendrive and play 2.wonder share will run and begin upscreen you'll be able to see countersign recovery 3 click the countersign recovery u will set our passwd. It is terribly simple w...