8.2 Groups

Three commands are useful for managing groups.

addgroup is similar to adduser, except it is used to create groups. Note that each ``user'' is automatically a group, and there is no need to invoke addgroup for each user. adduser automatically creates a group for each user. The command addgroup should be used to create groups that do not correspond to any user.

delgroup is similar to deluser, except that it is used to remove groups. It can take the same options as deluser to remove the home directory of a group.

adduser (yes, the same command that we have discussed earlier) is used to add individual users to a group. For example, to add funky to the group cisn120, we can use the following command:

adduser funky cisn120



Copyright © 2006-07-31 by Tak Auyeung