From the course: Linux: Storage Systems
Unlock this course with a free trial
Join today to access over 24,200 courses taught by industry experts.
File permissions demo - Linux Tutorial
From the course: Linux: Storage Systems
File permissions demo
- [Instructor] Let's do a quick example with file permissions, just to make it clear because there's a little bit of subtlety. So we'll make a empty directory here just so we've got a blank canvas. We'll create a file. So I'm the user, Instructor, and I can read/write the file 'cause I'm the owner. Group can read and write it and others can read it. So I can cat it. And you see I just wrote into it, but we can write into it again. All to be expected. Now what if we change the permission mode to 077? Now, owner supposedly doesn't have any permissions in the group and others have everything. So I'm the owner here. I own the file. Can I read it? No. Can I put stuff in it? No. So the way the permissions work is if you're the owner, you get the owner permission. End of story. If group and others have more, too bad. You're limited.
Contents
-
-
-
-
-
(Locked)
Restore default SELinux file contexts3m 41s
-
(Locked)
Working with AppArmor2m 59s
-
(Locked)
Configure encrypted partitions2m 39s
-
(Locked)
Manage file system access control lists3m 10s
-
(Locked)
File permission problems3m 24s
-
(Locked)
File permissions demo1m 20s
-
(Locked)
Using SUID, attributes, and read-only5m 10s
-
(Locked)
Challenge: SELinux, LUKS, ACLs1m 35s
-
(Locked)
Solution: SELinux3m 14s
-
(Locked)
Solution: LUKS3m 6s
-
(Locked)
Solution: ACLs1m 41s
-
(Locked)
-
-
-