Setting up a Public Directory for a Big Project on Linux Network
Answered
- Launch your Linux Mint VMthat you created in assignment #1, open a Bash Shell, and set the hostname of this VM to: Mint-VM1 (using the hostnamectl command). Reboot this VM to confirm that this new hostname appears in the Bash shell prompt.
- Create another VM called VM-Assignment2and Install the 32-bit version of Linux Mint. You are NOT required to add a second virtual hard drive.
- Set the hostnameof this newly-installed VM to: Mint-VM2. Reboot this VM to confirm that the new hostname appears in the Bash shell prompt.
- Create the following regular users (with home directories) on your Mint-VM1host with the information displayed in the table below:
Username
|
Full Name
|
Type
|
ang
|
Amy Ng
|
Full-Time Regular User
|
auditor
|
Financial Auditor
|
Temporary Regular User Expiry Date: Oct 31, 2019
|
temp1
|
Temporary Account 1
|
Temporary Regular User Expiry Date: July 31, 2019
|
- Set passwordsfor those newly-created accounts (Tip: use the same password).
- Create the following regular users on your Mint-VM2host (including home directories) with the information displayed in the table below:
Username
|
Full Name
|
Type
|
mkhan
|
Mohammed Khan
|
Full-Time Regular User
|
pparker
|
Peter Parker
|
Full-Time Regular User
|
auditor
|
Financial Auditor
|
Temporary Regular User Expiry Date: Nov 30, 2019
|
- Set passwordsfor those newly-created user accounts (use same password).
- Follow the steps in your tutorial #4 (part 1)to setup a Virtual Private Network (VPN) for both of your VMs.
- Follow the steps in your tutorial #4 (part2)to configure your VMs for a Manual IP Address instead of DHCP. Although you are using Linux Mint instead of Kubuntu, the procedures are identical to the steps that you performed in your tutorial #4.
Refer to the table below for setup information:
Mint-VM1 Host
|
Mint-VM2 Host
|
network: ethernets: ens33: dhcp4: false addresses: [192.168.226.30/24] gateway4: 192.168.226.2 nameservers: addresses: [8.8.8.8,8.8.4.4]
|
network: ethernets: ens33: dhcp4: false addresses: [192.168.226.40/24] gateway4: 192.168.226.2 nameservers: addresses: [8.8.8.8,8.8.4.4]
|
- Save your network configurations for bothVMs, issue netplan apply command and restart your both of your VMs.
- Issue theip addr command for each VM to confirm the correct IP Address is set.
- Test-out so you can pingeach VM’s IP Address and the Internet from the other
Do NOT proceed until your network connections for your VMs work correctly.
- Configure the /etc/hostsfile for each VM using the following information:
IP Address in /etc/hosts
|
Hostname in /etc/hosts
|
192.168.226.30
|
mint1
|
192.168.226.40
|
mint2
|
- Test-out so you can ping each other by hostname (e.g. “mint1” and “mint2”).
The Chief Information Officer (CIO) is overseeing a large programming project that will require a few employees to work as a team to develop software that will generate a significant amount of future revenue for the organization.
As the sysadmin for your Linux network, you will be responsible for setting up a public directory as an access point for this “big project”, create several files within this directory, and set permissions for that public directory and the files contained in that directory. You will also setup an NFS network share to allow other users in a remote VM be able to view, but not edit those files within that public directory.
- Switch to your Mint-VM2
- Create a group name called: bigproject
- Add the users mkhanand pparker to the bigproject
As root, you are going to create a directory called /bigproject. Root will own this directory, but you will set permissions for other users to access this directory.
- Create a directory that branches from your rootdirectory called: /bigproject
- Set permissions for this /bigprojectdirectory (which is owned by root) to allow full permissions for the root account, to allow access and read permissions for both
“same group members” as well as “others”.
- Create the following empty files in the /bigproject directory:
analysis.txt
design.txt
conglomerate.java