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

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