Let's Manipulate Permissions and Ownership!

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ก.ย. 2024
  • Linux has a simple, but powerful permissions system based on 3 different potential users. The user/owner, anyone in the group, and everyone else on the system. Using those combined with read, write, and execute, it's possible to fine tune who can do what to files and directories on a system.
    We use the tools chmod and chown in order to make changes, and as a bonus, we learn to make the changes using the octal notation shortcut. It seems mundane, but playing with permissions is actually kinda fun!
    This video based on:
    LPI Linux Essentials
    Objective 5.3 - Managing File Permissions and Ownership
    www.lpi.org/ou...
    #LPI #LinuxEssentials #Exam_010_160 #Linux
    Find me online:
    / shawnp0wers
    brainofshawn.com
    Check out my comic!
    / mybigroundworld

ความคิดเห็น • 38

  • @Kobalt2772
    @Kobalt2772 ปีที่แล้ว +23

    btw octal notation is on the linux exam. you have to know what it means and what permissions it gives

  • @Quasar359
    @Quasar359 หลายเดือนก่อน

    I'll be taking my LPI exam probably in a week or so. I'm new to Linux and was pretty intimidated. Your videos have broken everything down and make it super simple! I put Linux on a VM and do the commands as you're doing them and it's not only making sense but it's also kind of fun. Thank you for your videos! It's criminal your channel isn't bigger. You are a huge help to not only me but many others.

  • @damianpodgorski6977
    @damianpodgorski6977 2 ปีที่แล้ว +10

    I am so glad you are going in more depths than Linux Essentials Exam objectives!

    • @shawnp0wers
      @shawnp0wers  2 ปีที่แล้ว +2

      That's the plan! Eventually I want to have a full catalog of courses, along with useful "other stuff" too. :)

  • @Henry-vw8xg
    @Henry-vw8xg 2 ปีที่แล้ว +9

    Shawn, thank you for your video series. I used this series extensively while preparing for my Linux Essentials exam. I'm glad you covered octal notation. I had multiple questions that required me to understand what octal notation is. For the section regarding Security and File Permissions, I scored 100%. Overall 710/800.
    Thank you!

    • @shawnp0wers
      @shawnp0wers  2 ปีที่แล้ว +1

      Congrats! That's incredible!!!

  • @damianpodgorski6977
    @damianpodgorski6977 2 ปีที่แล้ว +1

    Shawn, you inspire me so much! I heard your car accident story, very moving. I am so inspired that I am going to mention your TH-cam channel on one of the tech talks I am going to deliver in my company (Blue Yonder, Panasonic)

    • @shawnp0wers
      @shawnp0wers  2 ปีที่แล้ว +2

      Sweet! Thank you! And welcome. I'm finally starting to feel better, hopefully more regular content will happen!

  • @yanib47
    @yanib47 3 หลายเดือนก่อน +1

    @10:45 we can use user : group instead of a . that will also works

  • @aleksandartyankov1454
    @aleksandartyankov1454 ปีที่แล้ว +2

    you could also change the group ownership using the chgrp command :)
    also, thanks a lot for this whole series, your explanation of the octal notation helped me finally understand it!

    • @shawnp0wers
      @shawnp0wers  ปีที่แล้ว +1

      Sweet! Yeah, octal notation is weird until it "clicks", then it makes sense. I'm glad it clicked for you!

  • @espana75
    @espana75 11 หลายเดือนก่อน

    Awesome video Shawn. Thanks for covering octal notations! I built a simple octal calculator using Excel based on the information in your video.

  • @th3392
    @th3392 2 ปีที่แล้ว

    I laughed hysterically for about a full minute after the Tool Time reference. 10/10

    • @shawnp0wers
      @shawnp0wers  2 ปีที่แล้ว +1

      lol! Thanks, I like it when people appreciate my cheesy humor. ;)

  • @jimc1499
    @jimc1499 6 หลายเดือนก่อน

    Thank you🎉

  • @georgejones5019
    @georgejones5019 2 หลายเดือนก่อน

    The only example I think of where a write to, but no read permission is allowed would be a log of some kind.

  • @abdigamingoo1152
    @abdigamingoo1152 2 ปีที่แล้ว

    oooh thank you so much finally understood octal notation i like the way how u teach thaaaaaaaaaaaaanxxxx💙

  • @kirstencrocker4364
    @kirstencrocker4364 2 หลายเดือนก่อน +1

    I made the mistake of skipping over octal notation & it was on the exam

  • @mudasir2168
    @mudasir2168 2 ปีที่แล้ว

    Excellent explanation....keep them coming !

  • @jkaranja100
    @jkaranja100 2 ปีที่แล้ว +1

    Great content. I passed my linux essential cert. Kindly do videos on : Linux Professional Institute LPIC-1

    • @shawnp0wers
      @shawnp0wers  2 ปีที่แล้ว +2

      NICE!!! Congratulations! And yeah, I've done LPIC-1 courses for almost every test revision over the years, but as an employee for a training company. It certainly makes sense to create a course for my youtube channel. I'll do my best!

  • @gctypo2838
    @gctypo2838 ปีที่แล้ว

    I've been pronouncing "chuh-mod" and "chown" since I first started using them.

  • @abdigamingoo1152
    @abdigamingoo1152 2 ปีที่แล้ว

    09:40 chmod= easy to read like change mode
    chown= change ownership :-)

  • @shobem2679
    @shobem2679 ปีที่แล้ว +2

    It boggled my mind to learn that the wider permissions aren't umbrellas that include the former. It's such an unintuitive behavior that the owner and group owner of a file actually can't access it if the permission is set to 077 since it only checks user permission and stops. 😵‍💫

    • @shawnp0wers
      @shawnp0wers  ปีที่แล้ว

      Ahh, yes. Sometimes the "simplicity" of POSIX permissions can seem complicated. Sorry about that!

  • @dotmars
    @dotmars 10 หลายเดือนก่อน

    If a user is part of a group, do they inherit those permissions as well? For example, with the hat file:
    User can read and execute (but not write). But the group can write and execute (but not read). If the user cannot write but is part of a group that can write, do they inherit write permissions?

  • @jorgevalencia6926
    @jorgevalencia6926 ปีที่แล้ว +1

    FYI - had one octal notation question on the exam

  • @papadelta4943
    @papadelta4943 ปีที่แล้ว

    Hey Shawn I’m gonna be taking the Essentials that’s why I’m here but I think it was this week that the LPI release the Linux Security Essentials are you going to do a video series for that as well ?

  • @ihsansaleem6228
    @ihsansaleem6228 2 ปีที่แล้ว

    Octal notation is quite comprehensive.

  • @jehster
    @jehster 2 ปีที่แล้ว

    I'm surprised the octal notation isn't on the essentials exam. Back when I first started learning *nix (SunOS, before Linuxwas a thing), that was the only way to set permissions.

    • @shawnp0wers
      @shawnp0wers  2 ปีที่แล้ว +3

      I was a little surprised too. And it's kinda fun (in a nerdy way, or, the best way, lol). It feels like a pre-algebra version of subnetting sorta. The next video, which is the last one for the series, will touch on Sticky Bit. I haven't decided if I should mention the 4th number in octal notation for setting that... Maybe I'll do the same sort of then, and mention it at the end of the video.
      Creating this course and giving it away has been so enjoyable. Of all the content I ever created for the company I worked for, Linux Essentials was the most watched. I don't have a marketing department, but I'm hoping this playlist helps even more people than that paid content did.
      OK, sorry for the tangent. I'm just having fun, and haven't set up a place to have conversations yet. I should really do that. I'm thinking a discourse forum, what do you think?

    • @jehster
      @jehster 2 ปีที่แล้ว +1

      @@shawnp0wers The sticky bit is a source of confusion often times, even with old hacks. Although the advent of the +s option in chmod made it easier to grasp.
      As for discourse, I've personally never used it. I only recently joined a discord channel. I still miss the days of IRC and AIM.

    • @shawnp0wers
      @shawnp0wers  2 ปีที่แล้ว +1

      Same. And as much as I’ve tried, I have a hard time “getting” discord. It’s what all the cool kids are doing. I also kinda want to use open source software and host it myself… see? Need a place to discuss such things. Big chicken/egg problem. :D

  • @Aquablecs
    @Aquablecs 2 หลายเดือนก่อน

    Why is octal notation so much easier for me than the normal way? lol im weird

  • @loringneumann8191
    @loringneumann8191 ปีที่แล้ว

    also the base is 2

  • @loringneumann8191
    @loringneumann8191 ปีที่แล้ว

    thats binary not octal. Octal would be 4 bits long not 3

  • @cyberghost_01
    @cyberghost_01 ปีที่แล้ว

    you are a beautiful person. love u with deep of my heart