>_ IzzyLab

Topic breakdown

The Linux permission model splits access into three categories — owner, group, others — and a "team folder" is built exactly on this: the person is made the owner, the team the group, and "others" get nothing. It's assembled from several tools: a group is created with groupadd, a user with a home directory and group membership with useradd (or is amended via usermod -a -G so as not to wipe the other groups), and the directory itself with mkdir. The directory's owner and group are set by chown in the owner:group format, and the octal permissions by chmod, where rwx = 7; it's convenient to verify the result with stat -c '%U %G %a'.

What's checked

  1. the developers group is created
  2. bob is a member of the developers group
  3. bob has a home directory
  4. owner, group and permissions of /srv/project

What it looks like