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.

Setting permissions

Setting permissions - Unix Tutorial

From the course: Unix Essential Training

Start my 1-month free trial

Setting permissions

- [Instructor] Now that we understand alpha and octal notation for permissions, we're ready to set them in Unix. Remember, alpha notation uses r, w, and x as a series of nine characters to say whether something has read, write, or execute permission for the user, group, and other categories. The way that we would change those permissions is using the chmod command. That's c-h-m-o-d, and it's short for change mode. So I guess you could also pronounce it as "chi-mode" if you prefer, but I call it "chi-mod". You'll see that right after the command, I have notation for the groups that I want to set. In this case, I've got u, g, and o, and I'm setting it equal to r, w, and x. And then I've got the path to the target file or directory. So in this case, I'm setting user, group, and other, all to have read, write, and execute permissions. Now I don't have to set them all to the same thing. I can also put commas between the list.…

Contents