Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/allwelldotdev/altschool-cloud-sem2-linux


https://github.com/allwelldotdev/altschool-cloud-sem2-linux

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# AltSchool Cloud 2nd Semester Assignment by Valentine Madu

**Assignment prelude:**
Your login name: altschool i.e., home directory /home/altschool. The home directory contains the following sub-directories: code, tests, personal, misc

Unless otherwise specified, you are running commands from the home directory.

`a. Change directory to the tests directory using absolute pathname.`

![Question 'a' screenshot](./screenshots/a.png)

`b. Change directory to the tests directory using relative pathname.`

![Question 'b' screenshot](./screenshots/b.png)

`c. Use echo command to create a file named fileA with text content ‘Hello A’ in the misc directory.`

![Question 'c' screenshot](./screenshots/c.png)

`d. Create an empty file named fileB in the misc directory. Populate the file with a dummy content afterwards.`

![Question 'd' screenshot](./screenshots/d.png)

`e. Copy contents of fileA into fileC.`

![Question 'e' screenshot](./screenshots/e.png)

`f. Move contents of fileB into fileD.`

![Question 'f' screenshot](./screenshots/f.png)

`g. Create a tar archive called misc.tar for the contents of misc directory.`

![Question 'g' screenshot](./screenshots/g.png)

`h. Compress the tar archive to create a misc.tar.gz file.`

![Question 'h' screenshot](./screenshots/h.png)

`i. Create a user and force the user to change his/her password upon login.`

![Question 'i-1' screenshot](./screenshots/i-1.png)

![Question 'i-2' screenshot](./screenshots/i-2.png)

![Question 'i-3' screenshot](./screenshots/i-3.png)

`j. Lock a users password.`

![Question 'j-1' screenshot](./screenshots/j-1.png)

![Question 'j-2' screenshot](./screenshots/j-2.png)

![Question 'j-3' screenshot](./screenshots/j-3.png)

`k. Create a user with no login shell.`

![Question 'k' screenshot](./screenshots/k.png)

`l. Disable password based authentication for ssh.`

![Question 'l' screenshot](./screenshots/l.png)

`m. Disable root login for ssh.`

![Question 'm' screenshot](./screenshots/m.png)