Why is Linux So Secure? | File Permissions and Groups

  Рет қаралды 11,193

Joe Collins

Joe Collins

Жыл бұрын

Linux is the most secure OS you can run on your computer... Here's why:
"Permissions" File attributes that define who can access or change a file
and whether a file can be executed as a program.
"-rwxr-xr-x" Shows file type and permissions.
+-------------+------+-------+
| d--------- | File Type |
+-------------+------+-------+
| - = regular file |
| d = directory |
| l = link |
+-------------+------+-------+
| Permission | Octal| Field |
+-------------+------+-------+
| rwx----- | 700 | User |
| ---rwx-- | 070 | Group |
| -------rwx | 007 | Other |
+-------------+------+-------+
Octal values:
Read = 4
Write = 2
Execute = 1
8 bits = 1 byte. Uses digits 0 1 2 3 4 5 6 7.
You can set permissions in the file manager or with the commend
"chmod." Examples:
Set a file to be executable and readable by
by everyone but only writable by you:
'chmod 755 filemane'
Set execute bit without changing other permisions:
'chomd +x filename'
When applying permissions to directories on Linux, the
permission bits have different meanings than on regular files.
The write bit allows the affected user to create, rename, or
delete files within the directory, and modify the directory's
attributes. The read bit allows the affected user to list the
files within the directory. The execute bit allows the affected
user to enter the directory and access files and directories
inside.

Пікірлер: 64
@JohnCarter04
@JohnCarter04 Жыл бұрын
Joe is back with another 100 level 'about linux' video!!! You seem to be one of the few KZfaqrs who has been able to explain these concepts in a way that not only can I understand, but is extremely engaging. Thank you for doing this, even though I've understood user/group permissions for awhile now. A nice refresher.
@NMY556L
@NMY556L Жыл бұрын
121 views in the first 20 minutes - nice back to basics linux theory which takes me back to my university course 20+ years ago. Note to Windows users: the concepts used years ago still apply to modern software today. I wonder what the oldest original line of code on a modern linux system is? No shame in revisiting the fundamentals of linux.
@definty
@definty Жыл бұрын
I can't wait for the sticky bit, suid and guid lessons! Fun fact! The CD command isn't an executable, it's a Shell built in function. When you use CD it just manipulates the environment variable $PWD. Type 'env' in bash and look for yourselves! Great video Joe! Thanks!
@EzeeLinux
@EzeeLinux Жыл бұрын
I don't know if I need to get that deep. Most regular users don't use that anyway. I will most certainly think about it, though. :)
@definty
@definty Жыл бұрын
@@EzeeLinux Thanks Joe :)
@OmarMekkawy
@OmarMekkawy Жыл бұрын
This video is awesome. I can't wait for your next Linux video.
@jorgeruiz7541
@jorgeruiz7541 Жыл бұрын
Hi Joe, greetings from CHIAPAS Mexico. I remember your old video talking about file permissions, groups, how to change it, etc. It was really deep and I also remember that some people criticized that it was too long just for talking about files and so on and so forth and many people came to shut those people up because it was really useful for any kind of Linux user ( new, intermediate, power user) I do love that this refreshing is coming up from you 'cause it's done with a clear voice and the right amount of pace for any person in the world to understand it even if English is not their native language. (Is it difficult for you to hide a little bit your accent?, 'cause I do feel you have a distinctive accent on the radio B99.9, or maybe that's just me, I'm not an English native speaker) When I make new VM's on another people's machines, I often get the question " why do I need to add me the vbox user to my user if I made the VM, in windows is faster and easier to set it up" When I explain security and permissions with them it's easier for them to understand it and get it. One example I use is letting them know how a user in windows needs also permissions to install software when it is not an admin. A normal user it's always asked for the password to install or uninstall anything. Great to see more Linux content as you promised and by the way, your "audio gear tour was awesome". You got some new toys since last time.
@jamesbrinn9701
@jamesbrinn9701 Жыл бұрын
Greatings from Canada. First Linux install was following your Tutorial on installing Linux Mint, 6 yrs ago Never looked back. Thank you. 👍
@sparkybluefox
@sparkybluefox Жыл бұрын
Another awesome video on Linux Joe ! I love you .~! You Rock ! SBF
@mikeparkerinalaska
@mikeparkerinalaska 5 ай бұрын
Thank you for the comment that "Linux is a Unix workalike" and the quick shout-out on Unix.
@ThePhiliposophy
@ThePhiliposophy 11 ай бұрын
I've been using linux on and off (mostly on the raspberry pi) since 2017 and it's only with this video that I finally understood what commands like "chmod 700" really meant, even though I have been using them for quite a while. Fantastic video!
@tonywise198
@tonywise198 Жыл бұрын
Just love these videos. Thank you Joe.
@davedaley9093
@davedaley9093 Жыл бұрын
Nice introduction to file permissions. By the way, what the execute bit on directory permissions does is allow read permission on the inodes pointed to by the directory entries. If you do a long list on a directory where you lack execute permissions the contents of the inodes are displayed by question marks (at least on the version of ubuntu I am using). On AIX machines I used in the past you just got a short listing.
@EzeeLinux
@EzeeLinux Жыл бұрын
That's good feedback.
@kolz4ever1980
@kolz4ever1980 Жыл бұрын
I started using Linux full time about 4 or 5 months ago. I love how open ended and so customizable it is that you can delete and edit so much. Even to the point you can destroy your whole installation if you're not careful lol. Don't like gnome? Change it. Don't like kde? Change it. Don't like either? Use window managers or command terminal entirely. Much more about it that made me enjoy it as time went on.
@georgestephens3513
@georgestephens3513 Жыл бұрын
Great video keep them coming.
@derekr54
@derekr54 Жыл бұрын
Great video Joe,very useful and informative.
@patrickvanreeth7355
@patrickvanreeth7355 Жыл бұрын
Thanks Joe, W10 made me jump to Mint, now my old Dell works just fine... will probably buy more refurbished ones just to experiment/learn while keeping the original oldie safe for 'normal' stuff 🤓😃
@franciscogana667
@franciscogana667 Жыл бұрын
Really Great Thanks Joe!
@sprtwlf9314
@sprtwlf9314 Жыл бұрын
Great info. Thanks!
@tytrvd
@tytrvd 10 ай бұрын
Joe your the best !
@h2o40fpv
@h2o40fpv Жыл бұрын
Like always great video thank you.😊
@seansean7653
@seansean7653 Жыл бұрын
Great presentation joe
@buddyc6579
@buddyc6579 Жыл бұрын
ware have you been ? I always listened to your videos ever since I installed Linux Mint Cinnamon years ago and then you disappeared from KZfaq Glad to see you are back I'll keep looking for your videos because I have learned so much from you
@77seban
@77seban Жыл бұрын
Thanks Joe All the best 🙂
@poparab
@poparab Жыл бұрын
groups are the concept to give peoples the same right as a projectmanager. Other peoples have the right as a Data Inputworker and so on. The group makes it easier in Linux / Unix. A Admin (root) can setup the group permission generally how he wanted.
@jimwinchester339
@jimwinchester339 10 ай бұрын
8:05 It's *normally* the last-modification time, but there's an option to show the most-recent access time as well. But you're out-of-luck with respect to creation time: for that, you need 'stat' as you've just shown.
@daviddykes6601
@daviddykes6601 Жыл бұрын
Hi Joe. Great show! Instead of using the chmod command to change the group, why don't you use the chgrp command?
@act.13.41
@act.13.41 Жыл бұрын
Thanks Joe!
@SlideRSB
@SlideRSB Жыл бұрын
Octal numbers have a relationship to binary similar to the relationship hexadecimal has to binary. While each hex digit can represent a group of four bits in binary, each octal digit can represent a group of three bits. Octal is so named because each octal digit can take on one value out of a possible eight values (0-7).
@skarlok1
@skarlok1 Жыл бұрын
Hey, thanks for a good video about file permissions. Do you have a tutorials for IP tables for less advance linux users? I could use some knowledge on that subject. Like blocking programs from the internet or directories. Or basically firewall for newbies in Linux
@jimwinchester339
@jimwinchester339 10 ай бұрын
26:58 - Wait, you have to also add group permissions for that: usually x5x.
@kevinrineer5356
@kevinrineer5356 Жыл бұрын
TIL now Directory permissions are helpful!
@InsideOfMyOwnMind
@InsideOfMyOwnMind Жыл бұрын
toad in the hole. Pointing at myself..."GROW UP!"🤣 Have you ever made that recipe? Looks pretty good.
@BleuJurassic
@BleuJurassic Жыл бұрын
how do you break the program drop the punch cards .... great explanation of permissions
@YanFei-zi7mm
@YanFei-zi7mm Жыл бұрын
Comment and Like ! Thanks
@waipalisrevenge3707
@waipalisrevenge3707 Жыл бұрын
What a nice content! Could you please make a video on the main differences between a linux root and windows local admin? How it's handled?
@thejoneseys
@thejoneseys Жыл бұрын
My logitech mouse is also hyper sensitive if it's in free wheel scroll mode I only have to cough near it for the screen to scroll 😂
@MartianPink
@MartianPink 3 ай бұрын
I've heard/read several times that Linux is more secure becuz of groups & file permissions. But doesn't Windows do that too, & I would guess Mac since that's more unix like but I haven't seen it so Idk? Does anyone know & is willing to tell me why groups & permissions make Linux more secure. I assume when they say "more", they mean more than Windows & Mac, or at least Windows. If I'm wrong can someone tell me what "more" means here? I'm not so skeptical that HOW they're used makes Linux more secure since people with lots of knowledge repeat it, so it seems safe to accept is probably true, but no one tells us. They keep only saying it's secure "becuz of groups & file permissions", as in it's the fact there are permissions that makes it more secure? They don't say "Linux is more secure than Windows becuz Linux does this with permissions while Windows does it that way" or "Linux does this & that with permissions, but Windows only does this without that". Is everyone simply repeating a dogma that, like me, they heard repeatedly, but never thought about it to see it's not an explanation at all? Or maybe they figure by explaining how permissions & groups work in Linux, that we already know how they work in Windows &/or Mac & will see for our selves why it's more secure, no explanation needed? I'd love if someone pointed out the difference that leads to better security. Other than coming across them in Windows (probably 7, where iirc it only used read, write, execute, I just looked & see they now use a few more permissions) while looking at file Properties out of curiosity, without interacting with them, I don't actually know how they work. It turns out that the way I assumed they work when I first saw them is exactly how they do work in Linux. As far as the basics go anyways. So at my level, it seems like Linux & Windows are equal at using them, so I still don't' know why permissions & groups make Linux more secure. Is it really that different in Windows?
@chrismacaber4531
@chrismacaber4531 Жыл бұрын
Speaking about broadcasting.... How can I tune in to good 'ol radio show? Well not exactly, being in western Europe. I would need a stream url😅
@EzeeLinux
@EzeeLinux Жыл бұрын
Just click Listen Live between 7 and midnight EST (US): www.b999fm.com/
@gaiusbaltar7122
@gaiusbaltar7122 Жыл бұрын
*cat > file world! >EOF *cat file* Hello World!
@RonHelton
@RonHelton Жыл бұрын
It has been a while, but I think that the file shows the last modified date and time. To show the creation (birth) date, use the stat command and the file name.
@EzeeLinux
@EzeeLinux Жыл бұрын
Yes, you are correct. I just couldn't figure it out while the recorder was running! :)
@user-fr3hy9uh6y
@user-fr3hy9uh6y Жыл бұрын
Good explanation. Also shows the limits of having only 9 bits for permissions. How do you give one group read permissions and another group write permissions? If you have a larger organization, how about allowing groups to be members of groups. I have to set up non linux NFS.
@yellingintothewind
@yellingintothewind Жыл бұрын
Extended attributes. `setfacl` is the command.
@gohan3243
@gohan3243 Жыл бұрын
What about minix
@rbettsx
@rbettsx Жыл бұрын
Ignorant Brit, here.. what Southern accent *exactly* do you speak in? It's soooooo precise in the consonants, and clear. Maybe you're just well-practised with a mike, too.
@EzeeLinux
@EzeeLinux Жыл бұрын
I don't speak any accent that I know of... I have spent 40 years in radio and TV, though. I guess that has something to do with it.
@Obeeewaan
@Obeeewaan Жыл бұрын
when changing the group ownership to vboxusers, you might have to also add the group permissions for them also before they vould actually use it... I think..😎 they couldn't do much at 0600 ??
@daviddykes6601
@daviddykes6601 Жыл бұрын
Correction: I think you used the chown command instead of the chmod.
@scottmb99
@scottmb99 Жыл бұрын
Permissions . .. .I sill have two USB drives I can no longer use because I filled them up using BU. I don't have 'Permission' to reformat them, or delete the files!
@EzeeLinux
@EzeeLinux Жыл бұрын
Yes you do!... You can do all those operations as root. Try this: Run 'sudo -s' at the terminal. Now, you're running as root. hook up those drives and delete whatever you want. When you're done just run 'exit' to go back to normal privileges. :)
@scottmb99
@scottmb99 Жыл бұрын
@@EzeeLinux Perfect, THANK YOU! That worked and I was able to remove the BU folder for a laptop that I no longer own and allow me to continue to use it for my new laptop. Thanks for all your past and ongoing support - it really helps a novice like me figure this new world out!
@EzeeLinux
@EzeeLinux Жыл бұрын
@@scottmb99 :)
@thiesenf
@thiesenf 3 ай бұрын
Uhm... nobody noticed he did a typo?
@jaspereijpe9849
@jaspereijpe9849 Жыл бұрын
9:07 what about c--------- and b---------
@martandrmc
@martandrmc Жыл бұрын
those are Character and Block device files
@VictoriaMan69
@VictoriaMan69 Жыл бұрын
I prefer calling it nuke and pave when starting again from scratch.
@TimoYlhainen
@TimoYlhainen 3 ай бұрын
Is Linux secure?
@RonHelton
@RonHelton Жыл бұрын
Jokes, lol What is a magician called who has lost his magic?
@sohibmohamed9548
@sohibmohamed9548 Жыл бұрын
ian
@jurgenblick5491
@jurgenblick5491 11 ай бұрын
I am really disappointed in Linux Mint
Linux fstab File Basics | What you need to know
34:23
Joe Collins
Рет қаралды 11 М.
Linux Does Not Suck 2024 | We've Come a Long Way, Baby!
34:25
Joe Collins
Рет қаралды 11 М.
Каха и суп
00:39
К-Media
Рет қаралды 2,8 МЛН
Beginner's Guide to the Bash Terminal
1:14:37
Joe Collins
Рет қаралды 2,3 МЛН
Do You Need A Separate /home Partition for Linux?
46:11
Joe Collins
Рет қаралды 51 М.
Linux Crash Course - Understanding File & Directory Permissions
35:48
Learn Linux TV
Рет қаралды 111 М.
Let's Write A Script! | How To Create BASH Scripts In Linux
49:45
Linux Tip | 10 Useful Linux Commands
34:35
Joe Collins
Рет қаралды 661 М.
4 MAJOR LINUX FILE SYSTEM:  EXT4 , XFS, ZFS, BTRFS
16:02
XPSTECH
Рет қаралды 33 М.
The Tragedy of systemd
47:18
linux.conf.au
Рет қаралды 1,1 МЛН
Linux File Types and File Permissions
46:05
Joe Collins
Рет қаралды 70 М.
Linux File System Simply Explained
26:50
NeuralNine
Рет қаралды 23 М.
Эй Рамазан # DamirAgroDizel
0:17
DamirAgroDizel
Рет қаралды 7 МЛН
รถมีชีวิต #ตลกขำๆ
0:21
ขายขำ channel (มะพร้าวเงินล้าน)
Рет қаралды 12 МЛН
Immersive outdoor dining Chinese rural dog Little puppy Rural dog
0:30
Country Puppy
Рет қаралды 13 МЛН
KINDNESS ALWAYS COME BACK
0:59
dednahype
Рет қаралды 130 МЛН