Skip to content

Latest commit

 

History

History

0x01-shell_permissions

0x01. Shell, permissions

Learning Objectives

General

  • What does RTFM mean?
  • What is a Shebang

Permissions

What do the commands chmod, sudo, su, chown, chgrp do Linux file permissions How to represent each of the three sets of permissions (owner, group, and other) as a single digit How to change permissions, owner and group of a file Why can’t a normal user chown a file How to run a command with root privileges How to change user ID or become superuser

Other Man Pages

How to create a user How to create a group How to print real and effective user and group IDs How to print the groups a user is in How to print the effective userid

Requirements

General

  • Allowed editors: vi, vim, emacs
  • All your scripts will be tested on Ubuntu 20.04 LTS
  • All your scripts should be exactly two lines long ($ wc -l file should print 2)
  • All your files should end with a new line
  • The first line of all your files should be exactly #!/bin/bash
  • A README.md file, at the root of the folder of this project, describing what each script is doing
  • You are not allowed to use backticks, &&, || or ;
  • All your scripts must be executable. To make your file executable, use the chmod command.