Lanka Developers Community

    Lanka Developers

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Shop

    change read write execute permission of a file linux

    Linux
    linux linuxfoundation
    4
    7
    901
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • binurayeshan
      binurayeshan Linux Help last edited by

      linux file permission ගැන දැන ගන්න - https://lankadevelopers.com/topic/382/understand-permission-of-a-file-in-linux
      හරි මම කියල දෙන්නම් දැන් කොහොමද linux file එකක permission වෙනස් කරන්නෙ කියල.

      0_1569376605126_Screen Shot 2019-09-25 at 6.46.17 AM.png

      මේ තියෙන්නෙ අපි හදා ගත්ත ෆයිල් එක sample.txt
      එයාට default permission විදියට ඇවිල්ල තියෙන්නෙ
      owner - read and write permission
      member - read only permission
      user - read only permission

      මම දැන් owner,group,user ඔක්ටකොටම මේ file එක execute කරන්න පුලුවන් විදියට permission දෙනව

      chmod +x sample.txt!
      

      0_1569376655050_Screen Shot 2019-09-25 at 7.24.19 AM.png

      දැන් ඔයා ඒ file එකේ permission බැලුවම ඔයාට පේනව් x කියල permission එක එයා​ලට හම්බුවෙලා තියෙනවා. ‍‍

      හරි දැන් අපි group membersලට permission දෙමු

      chmod g+w sample.txt # මේ කියන්නෙ group membersලට write permission දෙන්න කියල 
      

      0_1569376982177_Screen Shot 2019-09-25 at 7.31.30 AM.png

      ඔයාලට බලාගන්න පුලුවන්න් group membersලගෙ permission වෙනස් වෙලා තියෙන විදි​ය

      other usersලට permission දෙමු

      chmod o+w sample.txt
      

      0_1569377612870_Screen Shot 2019-09-25 at 7.43.20 AM.png

      ownerට විතරක් permission දෙමු

      chmod u+x sample.txt
      

      මේ විදියට ඔයාලට කැමති විදියට ෆයිල් වල permission දෙන්න පුලුවන්

      u — the user who owns the file (that is, the owner)
      g — the group to which the user belongs
      o — others (not the owner or the owner's group)
      a — everyone or all (u, g, and o)

      r — read access
      w — write access
      x — execute access

      1 Reply Last reply Reply Quote 3
      • shehan_s
        shehan_s last edited by

        SUPERRRRRRRRRRRRRRRRRRRRRB!

        binurayeshan 1 Reply Last reply Reply Quote 2
        • dev_lak
          dev_lak last edited by

          niyamai machn

          binurayeshan 1 Reply Last reply Reply Quote 0
          • binurayeshan
            binurayeshan Linux Help @shehan_s last edited by

            @shehan_s said in change read write execute permission of a file linux:

            SUPERRRRRRRRRRRRRRRRRRRRRB!

            Thanks for your comment it inspire me a lot

            1 Reply Last reply Reply Quote 0
            • binurayeshan
              binurayeshan Linux Help @dev_lak last edited by

              @dev_lak

              Thank you for your comment it inspire me a lot

              1 Reply Last reply Reply Quote 0
              • root
                root Linux Help last edited by

                Superb bro

                binurayeshan 1 Reply Last reply Reply Quote 0
                • binurayeshan
                  binurayeshan Linux Help @root last edited by

                  @root said in change read write execute permission of a file linux:

                  Superb bro

                  Thank you very much bro

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post

                  0
                  Online

                  3.6k
                  Users

                  1.3k
                  Topics

                  5.3k
                  Posts

                  • Privacy
                  • Terms & Conditions
                  • Donate

                  © Copyrights and All right reserved Lanka Developers Community

                  Powered by Axis Technologies (PVT) Ltd

                  Made with in Sri Lanka

                  | |