COMP83 Linux 1 Lab Assignment 2 Instructor Alex Alexander
Please provide appropriate screenshots after each step as evidence for work accomplished.
Section I: Install Fedora server 32 with the following partitions:
- /boot 350MB
- / 20GB
- /home 8GB
- SWAP 2GB
Section II: Create an additional 7GB partition with ext4 as the file system.
Section III: Configure the computer name and network settings:
Computer Name | YourName-XXX |
IP Address | 172.22.88.100 |
Subnet Mask | 255.255.255.0 |
Default Gateway | 172.22.88.254 |
DNS | 172.22.28.250 |
Section IV: Create the following users and groups
(remember to setup a password for each user)
User Name | Login Name | Group Membership | Additional Details |
Naweed | SNaweed | Finance, Accountant | Comment: Naweed Sayed |
Said | SSaid | Finance | Comment: Said Sadat |
John | SJohn | Finance | Comment: John Smith |
Ali | HAli | Finance | Comment: Temp worker Account Expiry: 25-Dec-2023 |
Jenny | DJenny | Human-Resources | Comment: Jenny Daniel |
Prince | MPrince | Human-Resources | Comment: Michael Prince |
Faheem | NFaheem | Human-Resources | Comment: Faheem Nazeri |
Ahmad | MAhmad | IT, Developer | Comment: Ahmad Mushtiq |
Kushbu | PKushbu | IT, Admin | Comment: Kushbu Patel |
Section V: Account Aging Policy
Account Expiry | 30 March 2025 |
Password Expiry (Maximum Age) | 70 Days |
Inactivity Period | 5 Days |
Minimum days before password change | 20 Days |
Password Expiry Warning | 10 Days |
*the account aging policy applies to all users except Ali. the temporary worker.
Section VI: Folder Structure
Create the following folder structure.
Demonstrate changing directory using both absolute path and relative path.
Section VII: Group Administrators
Groups | Group administrator |
Finance | Naweed |
Human-Resources | Prince |
IT | Kushbu |
Section VIII: Files Security Detail
(create the files in the ~/Main/Admin/Other directory)
Security Setting | Owner | Group | File |
drwxr—– | Naweed | Finance | Confidential |
-rw-r—– | John | Finance | .Budget |
drwxrwxr– | Ali | Finance | Invoices |
-rw-rw-rw- | Jenny | Human-Resources | AddressList |
-rw-r–r– | Fahim | Human-Resources | Memo-01 |
-rwxr-x-r-t | Kushbu | IT | prog-01.exe |
Section IX: Create files using the vi editor
(Create the following file employees-01.txt in the HR directory. Do not type the column header.)
Employee # | First Name | Last Name | Age | Department |
245634 | Naweed | Sayed | 45 | Finance |
874653 | Said | Sadat | 28 | Finance |
648764 | John | Smith | 37 | Finance |
944275 | Ali | Hakimi | 57 | Finance |
165322 | Jenny | Daniel | 22 | Human Resources |
185345 | Prince | Michael | 31 | Human Resources |
534882 | Faheem | Nazeri | 42 | Human Resources |
962534 | Ahmad | Mushtiq | 51 | IT |
254982 | Kushbu | Patel | 26 | IT |
Section X: Create the following sorted files
- employees-02.txt: sorted in ascending order based on Employee #.
- employees-03.txt: sorted in alphabetical order based on the Last Name.
- employees-04.txt: sorted in descending order based on Age.
- employees-05.txt: sorted in reverse alphabetical order based on First Name.
Section XI: Compressing and Archiving Files
Use the tar utility to combine all of the 5 previous employees text files to a single gzip compressed file.
Section XII: File Manipulation
Create and join the two following files to obtain a single combined file with matching information. The combined file name should be CustumerInfo.txt.
CustomeAge.txt
John 27325 45
Sally 15382 76
Jill 34221 32
CustomerAddress.txt
Mississauga ON 34221
Brampton ON 15382
Laval QC 27325
Section XIII: Other requirements
Demonstrate the following using any file or user:
- Lock and unlock a user password
- Delete a user
- Delete a file
- Copy a file
- Move a file to another directory
- Rename a file
- Add a user to another group
- Add a user to a group when logged in as a group administrator
- Remove a user from a group when logged in as a group administrator