itis 3110 lab 7 scripts. final projects due today! team captains need to wait for feedback will...
TRANSCRIPT
ITIS 3110LAB 7
Scripts
Final Projects• Due today!• Team captains need to wait for feedback
• Will review immediately after lecture done
Lab 2 and 7• Second part of lab 2:
• Lab 2• Entering simple scripts• Testing • Documenting• Simple modifications on some
• Lab 7• Writing your own
• Major improvements to addpermplus• Create new accounts
LAB 7 HINTS
Improve addpermplus.sh• 1st parm must be only u, g, o, or a• 2nd parm must be only r, w, or x• 3rd parm must be a valid name
• You decide what a valid name consists of• size• characters• anything else
• Document your choice
• Test and document it's working• Show proper rejections
Create new accounts• Source for the new IDs will be an spreadsheet (e.g. Excel) file
• Contains at least Firstname and Lastname
• Convert (save) e.g. Excel .xlsx .csv file• Read the csv file to generate usernames
• Up to first 6 character of lastname last• 2 characters of firstname first• Concatinate last+first
• Create an account for each user• Home directory• Assign a random pw
• Your choice for length (but at least 6 chars)• Your choice for chars (but at least alpha + numerics)• Many samples on the internet• Record the pw somewhere so it can be sent to the user
• Recommend creating a new .csv file with the fname, lname, user name and pw• Can be viewed with a text reader or spreadsheet
• Force new PW when 1st login
Random Password• Use Google to find simple script• If you have openssh install it is a simple one-liner
Deliverables• Upload to Moodle
• .doc file • Copy of scripts code• Copy showing script running
• Working with good data• Rejecting bad data
• Enhanced addpermplus code• New accounts code
• Can be one module, or a suite of modules• Document how it works
• TA available this lab for advice to debug
Lab 7• Due next week
• Start of Next Lab
• This lab is worth 20 points
GET STARTED