From the course: Unix Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

File and directory ownerships

File and directory ownerships - Unix Tutorial

From the course: Unix Essential Training

Start my 1-month free trial

File and directory ownerships

- [Instructor] In this movie, we'll talk about file and directory ownership. Ownership is how Unix knows which files and directories belong to you. If you own a file, you can control access to it. We can view the ownership when we type the ls-l command. The third and fourth columns in that list. The ones that say Kevin Skogland and staff, those are the ones we want to pay attention to. The owner of these files and directories is Kevin Skogland and the group is staff. Now, of course, yours will be different. If we use ls -la, that'll show the hidden files too. Notice if we scroll up a bit here that the parent directory has a different owner and group. So my user home directory, the one that belongs to me, is something I own, but the root of the system which is a special user, we'll talk a bit more about it later on. The root user, owns the directory that's above. I can't make changes to that parent directory unless…

Contents