R. Craig Collins >CPMT
2449 > Overview 7
Overview 7 © R. Craig Collins, 2005/11
•Items that should be accomplished before the beginning of the current time frame:Items to accomplish during the current course time frame:
Lab 5 quiz Answer questions at the end of chapter 8-9
Lab 5 dropbox screenshots of setting up users, groups, and controlling access in Windows and Linux
Overview of steps
(Collect screenshots along the way;
Windows [PrtScn] then paste into a file;
Linux Application button/Accessories/Print Screen)
Create Students and Groups
Create a group called student
Create a group called faculty
Create a user, add them to the student group (in Windows must also be a server operator)
Repeat for faculty
See Overview 6 for Windows process.
Create a folder in the already existing shared folder
• Windows us Start/Computer to access c:\users, right click New\Folder, rename it student
• Llinux use command prompt: su, then cd /, then mkdir /home/student for example
Repeat for faculty
Place a file in each folder, for later testing. (win us Notepad; linux use command prompt
su, then cd /, then touch /home/faculty/test.txt for example)
Limit access to folders
Goal: Faculty members have full control of student and faculty folder
Goal: Student members have full control of student and list and read for faculty folder
• Windows, right click the folder, use Security to Edit, then add groups, and set what they can do
• Linux, use command prompt to change ownership chgrp faculty /home/faculty for example
• Linux, use command propmt to change permissions chmod 775 /home/faculty which give user full control, group full control, and others (students) RX
• Linux, use command propmt to change permissions chmod 777 /home/student which give user full control, group full control, and others (faculty) RWX
INTERESTING DETAILS FOR REVIEW
•Read Creating Users, below
Must supply:• Examples of Advanced Techniques: Adding a user in Linux using the command line
Options:
Example: To add a new user with
useradd linux02a -s /bin/bash -p Password2 -d /home/linux02a -m linux02a
• Examples of Advanced Techniques: Users and Templates Windows
•Examples of Advanced Techniques: Users and Templates Linux
1. Optional Manually add user Linux
Specifications
PS Don’t name your user faculty, then your group faculty, and then a folder faculty. This will lead to confusion later, use different, meaningful names.
2. Open up the Linux equivalent of (My) Computer, and browse to the ‘home’ folder.
As you can no longer log in as the root user, recall that you have to log in as a student or log in as a faculty member to do the activity in this fashion
(to change which owner (user) a file belongs to, use chown
chown ownername file or folder)
Browse to the home folder, then right click the folder in question... choose Properties, then choose Permissions
|
Back in the GUI, right click the StudentStuff folder and make sure right click the FacultyStuff folder and make sure Others have Read
•review chmod here |
Preview of next discussion
•Controlling not just the folders, but the drive the folders are saved on: Dynamic Disks
RAID concepts
Microsoft How to:Dynamic Disks http://support.microsoft.com/kb/323442
Disks are divided into partitions, disks can be aggregated with volumes that span disks
• to http://support.microsoft.com/kb/816307
Start/Administrative Tools/Computer Management/Disk Management
Right clickbasic disk that you want to change, and then click Convert to Dynamic Disk
the gray area that contains the disk title, such as Disk 0
Creating a Simple Volume
Right click unallocated space, then choose New Volume
• to http://support.microsoft.com/kb/323442
•Complete
•Lab 5:
•Create Groups and Users in both Linux and Windows
•Create Faculty Folder and Files
•Give Faculty full control in both,
give students full control in the student folder, and read list in faculty
•Lab 6*:
•Study Dynamic Disks
Microsoft How to:Dynamic Disks http://support.microsoft.com/kb/323442
•Remote Access
•Submit
•Lab 5 ( dropbox)
•MUD (My Understanding, Details) respond as directed
to the following:
What topics, if any, during this time frame
do you feel very comfortable with? Why?
What topics, if any, during this time frame
do you not feel comfortable with?
•Class Discussion/BFO (Blinding Flash of the Obvious):
respond as directed to the following:
Discuss file and folder permissions
for Labs that require files to be electronically submitted
• select all the files required, or better, select the folder that contains all the files
• zip the required
file(s) and/or folder(s)
• rename the
zipped file to reflect your name and the lab being turned in
•Example: yourname-lab1 or yourname-lab1.zip
(if your extensions are visible)
(For additional help on selecting, zipping,
or renaming files, see Windows
Crash Course)
If submitting by Temple College Desire2Learn:
•Log into D2L, scroll to the bottom, and choose the
correct course
•When the Course Home Page appears,
click on the desired tool link.
eLearning Tour; elearning Tour Tutorial on Discussions; eLearning Tour Tutorial on Dropbox; eLearning Tour Tutorial on Quizzes
•For the next time frame, read:
•Chapter 10
•Each test has a review; you may wish to write out pertinent information from the readings and activities
•After completing this overview, you may wish to start on the next Overview material, and preview Lab 6