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

YUM LINUX

        TOday i'll tell u a way to install viscus server and the way to assemble it. yum server stands for yellow dog updater Modified yum server is largely used for install UNIX packages and server this server is incredibly necessary to handles the linux server. YUM are often assemble to appear for a rev in multiple location Internet access isn't offered throughout the RHCE vi examination YUM server permit you to form native repository During the examination you may have a affiliation to native repository Use YUM to put in and take away rev where attainable throughout the examination YUM mechanically resolve software package dependencies first of all disable firewall. config ip Now how to configure  yum commands. 1 mount  /dev/cdrom/mnt.       enter 2 cd /mnt 3 cd /Packages   (  note :- Package p always capital otherwise your command could not be process.) 4  package]# rpm -ivh vsftp* 5 package]#...

WHAT IS COMPUTER AND TYPES

What is computer Computer could be a device.computer could be a device that's accepts all info and communicate with individuals pc will store our information like musice,program,wordfile etc. You can use pc for send mail,typing document ,play games  and browse internet.you can additionally edit produce programme displays and videos. There square measure four varieties of computer . 1.super computer 2.Mainframe computer 3.Mini computer 4.Micro computer Micro computer- are the foremost common reasonably computers in use as of 2014. The term “microcomputer” was introduced with the appearance of systems supported single chip microchip The known early system was the double star 8800, introduced in 1975. The term "microcomputer" has much become associate degree anachronism. These computers include: • personal computer -A case and a show, put to sleep and on a table. •    In-car computers – designed into a automobile, for  Entertaiment,navigation etc. • ...