IT3110 - System Automation

IT3110 @ utahtech

Assignment

Often computer systems are used by several different groups of users, with varying levels of cooperation between the groups.
In this assignment you will gain experience in creating users and groups, and managing them.

In this assignment, you will make work areas for the following 3 different groups on your system you plan to use as a web server. The groups and members are listed below. The group name is listed first, followed by a comma separated list of the users in the group.

Before creating any accounts*, modify the files in /etc/skel such that all new accounts will have a umask that allows all privileges for the user and group, and none for the world. Do the /etc/skel solution to this issue, not others you may find.

Create the accounts and groups as listed above, with proper group membership. Each of the users’ primary groups should be personal, as is the default. Their membership in the group listed above is extra. For example, the user lisa has a primary group of lisa, but also belongs to the simpson group.

For each group, create a directory /work/$groupname, where $groupname is replaced by the name of the group. Note the leading / on the directory name. This is an absolute path. Be careful that you place this correctly.

The directory should be owned by the last member listed in the group above. It’s group ownership should be the group that the directory is named for. For example /work/flintstone should be owned by the pebbles user and the flintstone group.

The permissions should be set to allow full privileges for user and group, and none for world. It should also have a mode setting so that new files or directories inside the directory will belong to the group that owns the directory. For example, no matter which user creates a file in the /work/rubble directory, the new file will belong to the rubble group.

Login as each user, change to the /work/$groupname directory, and create a file. Verify that the permissions and ownership of the new file are correct. If not, fix your configuration and try again.