Linux File permissions and Ownership Explained

Поділитися
Вставка
  • Опубліковано 11 гру 2018
  • In this video, I go over Linux File permissions and Ownership. With them Explained, you will be able to understand the basics of Privileges. Please note: I forgot to add -R to chown / chmod commands to change folders/files in mass.
    Detailed Guide:
    linuxhandbook.com/linux-file-... .
    ►► Digital Downloads ➜ www.cttstore.com
    ►► Reddit ➜ / christitustech
    ►► Titus Tech Talk ➜ / titustechtalk
    ►► Twitch ➜ / christitustech
  • Наука та технологія

КОМЕНТАРІ • 60

  • @das_evoli
    @das_evoli 3 роки тому +57

    In case anyone wondered why they are using these numbers: It's basically binary.
    rwx = 111 = 7,
    -wx = 011 = 3,
    rw- = 110 = 6

    • @mrs.patriciathomas-evans9115
      @mrs.patriciathomas-evans9115 2 роки тому +1

      I still don't understand this at all!

    • @NavneetKumar-dr3ic
      @NavneetKumar-dr3ic 2 роки тому +1

      @@mrs.patriciathomas-evans9115 Read about binary number system.

    • @LaxM
      @LaxM 2 роки тому +4

      @@mrs.patriciathomas-evans9115 You don't necessarily need to know binary, just know that r=4 w=2 x=1 For any possible combination of rwx, those values will add up to a unique number. Example: r-x is 4 + 1 = 5. r-- is 4. rwx = 4+2+1 = 7
      One number (1-7) is used to represent the permissions for user, group, other, respectively.

    • @Neo-sv1zb
      @Neo-sv1zb Рік тому

      Makes sense

  • @datoura
    @datoura 2 роки тому +5

    This is such a great video in the way it's explained alongside actually demonstrating using chown and chmod. Thanks Chris!

  • @busyrand
    @busyrand Рік тому

    Chris is a fantastic instructor. This is the first time any of this stuff ever made sense.

  • @dan_le_brown
    @dan_le_brown 8 місяців тому

    This is hands down the best video I've seen today; helped with my skill issue

  • @iamdedlok
    @iamdedlok 2 роки тому +2

    Great stuff, loved it! Thanks Chris!

  • @adeleketobi1
    @adeleketobi1 Рік тому

    I enjoyed this, understand better and simpler now. Better assimilated. Thanks indeed. The web blog is a great tool/material.
    Thank you and God bless 🙏.

  • @dhakhoa93
    @dhakhoa93 5 років тому

    Not sure if anyone has mentioned this, and it's not directly related to just this video, but just a quick tip for whenever you run a command and realize you missed "sudo", instead of recalling the command and adding sudo to the beginning, you can simply just do "sudo !!" which basically means "run the last command with sudo"

  • @shahin2324
    @shahin2324 4 роки тому

    Nice and short! Thank you.

  • @BayDeveloper
    @BayDeveloper 3 роки тому

    Thanks for video. This one was really explaining and nice.

  • @TeamLinux01
    @TeamLinux01 5 років тому +3

    Good tutorial. It was a nice refresher for me.

  • @smccrode
    @smccrode 5 років тому +9

    9:16 - would have been a great time to teach `sudo !!` haha

  • @clarkx86
    @clarkx86 4 роки тому

    Thank you very much :-). Great video!

  • @GradyBroyles
    @GradyBroyles 5 років тому +1

    might be worth mentioning "tldp" the Linux Documentation Project as well. It has fantastic Bash reference with scripting
    TIP: absolute v. symbolic: If I need to set permissions to something specific, I use absolute (numbers) but the *most* common change to permissions I make is to add or take away executable on a script or binary. For that: chmod +x is more convenient.
    Curious, why titus:tutus and not titus:users?

    • @ChrisTitusTech
      @ChrisTitusTech  5 років тому +1

      This is the stock home folder for my user where it is the default setting. If setting a specific folder for all users to access that would make much more sense. I need to make a video over viewing and adding users and groups next.

  • @antonhen23
    @antonhen23 4 роки тому

    Thanks! Great video!

  • @ElisandroDeLeon
    @ElisandroDeLeon 3 роки тому

    This is better explained than the book I bought for my cert

  • @cruisetvshow
    @cruisetvshow Рік тому +1

    nice video. Thanks dude

  • @OldieBugger
    @OldieBugger 5 років тому +6

    Thanks, there was some things I knew, some I didn't. Good lesson. If you want to continue acting as a teacher, that's something I will appreciate much.

    • @ChrisTitusTech
      @ChrisTitusTech  5 років тому +1

      You got it! I plan on at least 2-3 Tutorial style videos per week, the rest with Linux news and experiences.

  • @WillsJazzLoft
    @WillsJazzLoft Рік тому +1

    This seems very similar to regedit in Windows. Yet, I think that if one breaks something in a distro it might be easier and lest costly to fix than a Windows registry. It seems like chown is central to getting things done in a file system. I anticipate that this will help me do some tinkering in the /etc and /var sub_folders. I need to add a line to modules, usb_storage. I want to get automount working for usb drives

  • @ibprodd
    @ibprodd 3 роки тому

    Perfect, thanks a lot

  • @UrbanLetsPlay
    @UrbanLetsPlay 4 роки тому +5

    idk, seems like titus doesn't know what hes talking about 3min into the video
    > Hardlink count is always 0
    Default is 1
    > you never see anything higher than 0
    your first ls command shows you have many many items with way more hardlinks than 1
    time to find another video

    • @tomaszgora4353
      @tomaszgora4353 8 місяців тому

      This^ Using symbolic is granular and doesn't overwrite existing permissions. Plus in what universe remembering the first letter of what you want to do is harder than an abstraction of sums of numbers to represent something unrelated? Here says it himself. You need to learn them actively. Argument against symbolic is like "boo hoo too many letters" I guess I must be different or something. Harsh? I can be opinionated too 😂

  • @netherlabgames7511
    @netherlabgames7511 4 роки тому

    Great video!

  • @arnobchowdhury9641
    @arnobchowdhury9641 4 роки тому

    Thank you sir.

  • @aanisnoor229
    @aanisnoor229 2 роки тому

    Thank you!

  • @hisforeverkid
    @hisforeverkid 4 роки тому

    Chris I'm running Manjaro, I downloaded a bunch of font files. Here is my problem when I do a ls -l in the font folder the permissions are showing all correct. when I try to copy fonts into the folder it tells me I don't have permissions. every time I do a cd into fonts then chomd, I must be missing some thing?

  • @sandro5535
    @sandro5535 3 роки тому

    Is there a way to chown/chmod all files inside a directory? So you wont have to type over and over

  • @theroyalaustralian
    @theroyalaustralian 3 роки тому

    You previously had the ability to change the ownership of Kali Linux to the user, and change the permissions of read, write and execute all the same

  • @user-mh9mq3qk9x
    @user-mh9mq3qk9x 3 роки тому

    Keep up bro

  • @samiramir91samor78
    @samiramir91samor78 2 роки тому

    Thanks

  • @kathleenhensley5951
    @kathleenhensley5951 2 роки тому

    I'm having this problem on my husband's computer but I think this is over my head. Is there a way to change it from within the operating system.. a menu or something? I keep getting the message 'you don't have permission '

  • @itsnavidalam
    @itsnavidalam 3 роки тому

    What if i had permission to Read, Write, Executive with one folder but by mistake remove permisson to folder how we can get it back ?

  • @theroyalaustralian
    @theroyalaustralian 3 роки тому

    How do you change the owner of your distro? I would prefer having full control over my operating system which is Ubuntu from Windows 10.
    Yeah...... I have switched to Ubuntu, the minimal install of windows 10 is not recommended if you want to keep windows 10 up do date, because you'll have to do an in place upgrade on it to fix why you can't update it, and secondly, I would prefer if I had permission to move a windows theme into any directory without facing permission denied error's.

  • @benriful
    @benriful 5 років тому

    I tend to use chmod with the rwx ideas ... mayby I'm just right-brain oriented.
    However, I dispise the + and - notation. Much simpler is the = notation. I.e. what I type is turned on, everything else is off. E.g.
    chmod u=rwx,g=rw,o=r test.txt
    That's the same as chmod 765 test.txt
    Ah! Edit: See I get those numbers wrong all the time!
    That's actually chmod 764 test.txt
    The 765 is the same as if I wrote chmod u=rwx,g=rw,o=rx test.txt

  • @deadnchillin4045
    @deadnchillin4045 Рік тому

    I need To take ownership of external drive, How Do I this? My steam folder is on a different drive just did fresh installed of Pop Os. Want to use my Games, saves. Thanks for your help anyone.

  • @narendranathjagarlamudi3191
    @narendranathjagarlamudi3191 3 роки тому

    how to add multiple users or groups excluding some of them to a file?

    • @jackmacdonald8499
      @jackmacdonald8499 2 роки тому

      Did you ever find an answer? I have the same question.

  • @selfelements8037
    @selfelements8037 2 роки тому

    What's the difference between "Read" and "Execute" in Linux?

  • @joel530johnson2
    @joel530johnson2 5 років тому

    I'm guessing that you didn't want to get into the weeds by talking about how those numbers are binary values i.e. 7 = 111 and 6 - 110

  • @user-qe7ex6yx6e
    @user-qe7ex6yx6e Рік тому

    macam mana nak buat?

  • @javiern4278
    @javiern4278 3 місяці тому

    What are . and .. directories?

    • @tristen_grant
      @tristen_grant 3 місяці тому +1

      Thats just moving back some directories. Its how you can move around to different folders in the terminal.

    • @javiern4278
      @javiern4278 3 місяці тому

      @@tristen_grantthank you

  • @cinquecento1985
    @cinquecento1985 Рік тому

    Good explanation. Still a terrible way to communicate with a PC in the year 2023.

  • @TotzOSRS
    @TotzOSRS 2 роки тому

    Watching this being a Titus felt odd.

  • @steveu235
    @steveu235 10 місяців тому

    I guess Linux will never be for the ordinary user

  • @mieszkogorajski5245
    @mieszkogorajski5245 2 роки тому

    Saya tidak percaya ia boleh menjadi sebaik ini

  • @Allinone-yl9fx
    @Allinone-yl9fx 2 роки тому

    r=4
    w=2
    x=1

  • @edwardkocourek5193
    @edwardkocourek5193 2 роки тому

    the sound is not good I am quite disappointed

  • @yoij-ov3sd
    @yoij-ov3sd 3 роки тому

    I'm here because blasting everything with 777 is failing me rn. I hate when linux gets in my way.

  • @saleemaoracle6978
    @saleemaoracle6978 Рік тому

    macam mana nak buat?