Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Preview

DS 2.9: Permissions and security when installing

This is the first page of the lesson. Read it and have a go at the activities. The rest is in the full lesson.

55 minutes

"Just make everyone an admin"

A new program will not install for a user. The quick fix is to make her an administrator. It works. A week later she installs a game, and the game carries a virus.

The quick fix was the cause. Permissions need more thought.

Key words

WordWhat it means
Permissiona right to read, change or run a file or folder
Authorisationdeciding what a signed-in user may do
Least privilegegiving a user only the rights the job needs
Administratoran account that can install software and change settings
Installto put a program on a computer so it can be used
Impactthe effect something has
Usabilityhow easy a system is to use
Networkcomputers joined together so they can share data

The cells students fill in are left blank in this preview.

By the end of this lesson

Note

I can say what permissions an install needs, apply least privilege and list the security impacts.

Starter

Have a go

Starter

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Permissions for installing and running

To install a program, the installer must write files into protected folders. A normal user cannot do that. An administrator can.

After the install, the program needs permissions to run. It must be able to read its own files and write to the places it saves work. Folder and file access has to be set so the right users can run it, and no more.

Try to write to a protected folder

Command
touch /usr/local/bin/mytool

A command for the lesson’s lab terminal. It is shown here and not run.

Look at who owns that folder

Command
ls -ld /usr/local/bin

A command for the lesson’s lab terminal. It is shown here and not run.

Do the same with admin rights

Command
sudo touch /usr/local/bin/mytool && ls -l /usr/local/bin/mytool

A command for the lesson’s lab terminal. It is shown here and not run.

Tidy up

Command
sudo rm /usr/local/bin/mytool

A command for the lesson’s lab terminal. It is shown here and not run.

The lesson goes on

8 more parts of this lesson are in the full curriculum, with the tasks, the final check and the labs. A college account gives your students all of it.