课程: Ubuntu Linux: User and Group Management

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Create and modify groups

Create and modify groups

- Groups help us organize users into collections, or units, that we can use to control permissions, quotas and other aspects of the system. Every regular user has a primary group, and users can also have supplementary groups. Normal users have a primary group that corresponds with their username, but we can grant access to other groups that already exist, like the administration group, or groups we create, like a group for the finance department so they can access a certain folder on the file share. To add a group to the system, we can use the addgroup command, and, just like with adding users, we can create either a regular group, or a system group. We can also add a user that exists to a group that already exists. We'll look at how to do both of these. First, I'll create a group called finance with addgroup finance. And I'll create another one called sales with addgroup sales. And then we need some users to put in those groups. I have one user already, and I'll create two more with…

内容