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 - Наука та технологія
In case anyone wondered why they are using these numbers: It's basically binary.
rwx = 111 = 7,
-wx = 011 = 3,
rw- = 110 = 6
I still don't understand this at all!
@@mrs.patriciathomas-evans9115 Read about binary number system.
@@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.
Makes sense
This is such a great video in the way it's explained alongside actually demonstrating using chown and chmod. Thanks Chris!
Chris is a fantastic instructor. This is the first time any of this stuff ever made sense.
This is hands down the best video I've seen today; helped with my skill issue
Great stuff, loved it! Thanks Chris!
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 🙏.
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"
Nice and short! Thank you.
Thanks for video. This one was really explaining and nice.
Good tutorial. It was a nice refresher for me.
Agreed
9:16 - would have been a great time to teach `sudo !!` haha
Thank you very much :-). Great video!
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?
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.
Thanks! Great video!
This is better explained than the book I bought for my cert
nice video. Thanks dude
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.
You got it! I plan on at least 2-3 Tutorial style videos per week, the rest with Linux news and experiences.
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
Perfect, thanks a lot
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
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 😂
Great video!
Thank you sir.
Thank you!
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?
Is there a way to chown/chmod all files inside a directory? So you wont have to type over and over
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
Keep up bro
Thanks
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 '
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 ?
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.
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
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.
how to add multiple users or groups excluding some of them to a file?
Did you ever find an answer? I have the same question.
What's the difference between "Read" and "Execute" in Linux?
@Commie Slayer Okay, thanks!
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
macam mana nak buat?
What are . and .. directories?
Thats just moving back some directories. Its how you can move around to different folders in the terminal.
@@tristen_grantthank you
Good explanation. Still a terrible way to communicate with a PC in the year 2023.
Its a great way.
Watching this being a Titus felt odd.
I guess Linux will never be for the ordinary user
Saya tidak percaya ia boleh menjadi sebaik ini
r=4
w=2
x=1
the sound is not good I am quite disappointed
I'm here because blasting everything with 777 is failing me rn. I hate when linux gets in my way.
macam mana nak buat?