课程: Practical Linux for Network Engineers: Part 1
免费学习该课程!
今天就开通帐号,24,700 门业界名师课程任您挑!
Linux permissions, part 4: Absolute permissions - Linux教程
课程: Practical Linux for Network Engineers: Part 1
Linux permissions, part 4: Absolute permissions
- [Instructor] Now that we know the meaning of user, group, and other permissions, let's look at how we can change permissions. And to do that, we use chmod, or change mode. Change mode has two modes, an absolute mode as well as a relative mode. Absolute mode uses numeric values. So, as an example, if I created a file called test three, these are the current permissions on that file. I could use change mode 777 and the file name, to change the permissions of the file. Notice on test three, we have read, write, execute, for user, or user owner, group, and other. Seven equates to read, which has a number value of four. Write, which has a numeric value of two. And execute, which has a numeric value of one. So user gets read, write access. Group gets read, write access, and other gets read, write access. Not a good idea to do that, so we could, as an example, do this. And notice, test three has execute only for other. We could change this to five, so read, which is four, plus execute…