 Introduction  The Windows 7 login script I inherited  Tools  Flow Chart  Requirements  Auto Login  Auto Shutdown  Unix Timestamps  Design 

Slides:



Advertisements
Similar presentations
automated single login access to Novell storage resources
Advertisements

LIS651 lecture 2 mySQL and PHP mySQL functions Thomas Krichel
LIS651 lecture 3 functions & sessions Thomas Krichel
Widhy Hayuhardhika NP, S.Kom. Overview of database structure Connecting to MySQL database Selecting the database to use Using the require_once statement.
MySQL Access Privilege System
Chapter 20 Oracle Secure Backup.
1 Server Side Includes and cgi scripts Advanced Web Programming.
Session 3BBK P1 Module05-May-2007 : [‹#›] Date Manipulation.
RH030 Linux Computing Essentials
MS-Access XP Lesson 1. Introduction to MS-Access Database Management System Software (DBMS) Store data in databases Database is a collection of table.
20&27 May Agenda 1.Highlight the difference between system flow of e- Invoice and paper invoice – 15 minutes 2.Demonstrate the operation procedure.
Database Chapters.
Initial set-up and use of OAS for Administrators/Coordinators.
CREATING USER ACCOUNTS Group accounts simplify administration by organizing user accounts into a single administrative unit. They provide a convenient.
1 Module 3 Setting Up User Accounts. 2  Overview Introduction to User Accounts Planning New User Accounts Creating User Accounts Deleting and Renaming.
Operating System Type of Operating System
Unix/Linux basics user management Operating systems lab Gergely Windisch room 4.12
DSX / Video Insight Driver Interface. Prerequisites for Video Insight DVR: 64 Bit Operating System (Windows 7 or equivalent) SQL Server 2008 R2 (Please.
Week 6: Chapter 6 Agenda Automation of SQL Server tasks using: SQL Server Agent Scheduling Scripting Technologies.
Introducing the Command Line CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
Chapter 5: Configuring Users and Groups. Types of User Accounts Administrator –Unrestricted access to performing administrative tasks –Use sparingly Standard.
Chapter 5: Configuring Users and Groups. Windows Vista User Accounts User accounts are the primary means of authentication Built-in Accounts –Administrator:
Guide To UNIX Using Linux Third Edition
Guide To UNIX Using Linux Third Edition
1 Chapter Overview Creating User and Computer Objects Maintaining User Accounts Creating User Profiles.
Chapter Seven Advanced Shell Programming. 2 Lesson A Developing a Fully Featured Program.
Advanced Shell Programming. 2 Objectives Use techniques to ensure a script is employing the correct shell Set the default shell Configure Bash login and.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 3 Administration of Users.
Cookies Set a cookie – setcookie() Extract data from a cookie - $_COOKIE Augment user authentication script with a cookie.
1 Guide to Novell NetWare 6.0 Network Administration Chapter 12.
Yi Shen Mar 18 th, Backup workshop Stanford Exploration Project.
POS/420 Introduction to Unix Philip Robbins – March 12, 2013 (Week 1)
Ch 21 Command Syntax Using the DIR Command with Parameters and Wildcards.
User Manager for Domains.  Manages the user accounts in a domain  It is located in the PDC  While User Manager exists in each NT machine, but it is.
Advanced Web Forms with Databases Programming Right from the Start with Visual Basic.NET 1/e 13.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting Includes and Dates.
Ali Bahar Eric Hetrick. Introduction CAS Uptown uses ZENworks 10.0 for their current imaging needs. CAS Uptown manages about 300 machines in Sander and.
DIT314 ~ Client Operating System & Administration CHAPTER 5 MANAGING USER ACCOUNTS AND GROUPS Prepared By : Suraya Alias.
Writing C-shell scripts #!/bin/csh # Author: Ken Berman # Date: # Purpose: display command and parameters echo $0 echo $argv[*]
ORNL is managed by UT-Battelle for the US Department of Energy Process Management Adam Simpson OLCF User Support.
UNIX Commands. Why UNIX Commands Are Noninteractive Command may take input from the output of another command (filters). May be scheduled to run at specific.
Lesson 1-Logging On to the System. Overview Importance of UNIX/Linux. Logging on to the system.
Operating Systems Concepts 1/e Ruth Watson Chapter 3 Chapter 3 DOS Ruth Watson.
CHAPTER Creating and Managing Users and Groups. Chapter Objectives Explain the use of Local Users and Groups Tool in the Systems Tools Option to create.
Chapter 3 & 6 Root Status and users File Ownership Every file has a owner and group –These give read,write, and execute priv’s to the owner, group, and.
Chapter 8: Objectives Explain how to use a server in a home or office network Install a server Set up a server Manage and monitor a server Design a server-based.
Lecture Three. Objective: Enable students to understand the practical side of Linux operating system. Understand and implement the following commands:
Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect 20AP. 1Winter Quarter File Transfer Lecture 20A.
Department of Electrical and Computer Engineering Introduction to Perl By Hector M Lugo-Cordero August 26, 2008.
IT1001 – Personal Computer Hardware & system Operations Week7- Introduction to backup & restore tools Introduction to user account with access rights.
Project 3: Ticket Printer
Tekelec Integrated Application Solutions on Network Software Platform Operating Date issued April 2006 Document reference & release version TR-IAS
Unix Servers Used in This Class  Two Unix servers set up in CS department will be used for some programming projects  Machine name: eustis.eecs.ucf.edu.
Configuring and Deploying Web Applications Lesson 7.
CMSC 104, Section 301, Fall Lecture 03, 9/09/02 Operating Systems and Using Linux Topics Review Number Systems. Go over Homework 1 Solution. CSHC.
Comp 145 – Introduction to UNIX $200 $400 $600 $800 $1000 $200 $400 $600 $800 $1000 $200 $400 $600 $800 $1000 $200 $400 $600 $800 $1000 Basic Concepts.
CONTROL-M Training At Global Online Trainings IND: Skype: Global.onlinetrainings USA:
Mainframe – Control-M Architecture.
Portal v2.6 Service Pack 1 Update. 2 Portal v2.6 Service Pack 1 6/27/2016 ©2007 GE Fanuc Intelligent Platforms All Rights Reserved Portal v2.6 Service.
WARCS (Wide Area Remote Control for SPring-8)‏ A. Yamashita and Y.Furukawa SPring-8, Japan Control System Cyber-Security Workshop (CS)2/HEP Oct
Open Source Server Side Scripting Permissions & Users
Like tron and not kron, or chron
Windows 94
Azure Automation and Logic Apps:
Linux + Galaxy Server Tutorial
Raw Materials and Resources
System & Network Administration (MCSA & RHCSA)
Daily Batch Process for Demand Forecasting
Setting up home folders and roaming profiles
Presentation transcript:

 Introduction  The Windows 7 login script I inherited  Tools  Flow Chart  Requirements  Auto Login  Auto Shutdown  Unix Timestamps  Design  Auto Login  Auto Shutdown  Conclusion

 The Windows 7 login script I inherited  Displays a login screen  Performs account authentication  Checks for blank usernames and passwords less than 8 characters  Auto login capability does not work.  Auto login implemented using threading.

 Threading Thread A Thread BThread C

 Tools  Python  Eclipse

 Shutdown the computer at any scheduled time

 Create a 2 GB H: drive partition  Run login.vbs  Run LibraryDefaultPage.vbs  Display desktop

 Number of seconds since 12 a.m. Jan. 1, 1970  E.g. 5/3/2013 5:54:17 PM 

 Problem 1: time is not a Unix timestamp  ['11:20', ''] 

 Solution:  Step 1: Get the month, day, year now datetime.datetime.now() month day year str(now.month) str(now.day) str(now.year)

 Step 2: Get the hour, minute, second  hour,minute = shutdownTimeList[0].split(‘:’)  11:20  hour = 11  minute = 20  second = “00”

 Step 3: Make a date string  e.g. mm/dd/YYYY HH:MM:SS  Step 4: Make a timestamp  Time.mktime.datetime.datetime.strp time(date_string, “%m/%d/%Y %H:%M:%S”)  e.g

 Threading abandoned  Therefore:  shutdown –a: cancels shutdown/restart  shutdown –r –t xxx: sets restart for xxx seconds  [' ', ' ', ' ', '']

now Auto Login Start Time Auto Login Period Auto Login End Time Outside Auto Login Period restart 60 sec. after auto login period time.time() os.system(“shutdown –r –t xxx”) clear any restart/shutdown create 2 GB partition for H: call login.vbs with auto login credentials call LibraryDefaultPage.vbs

now restart 60 sec. after auto login period clear any restart/shutdown create 2 GB partition for H: call login.vbs with auto login credentials call LibraryDefaultPage.vbs os.system(“shutdown –a”) subprocess.call(“diskpart /s command.txt”) shell.Run(“wscript.exe [file path]”)

 Problem: Multiple auto login times Auto Login Start Time Auto Login Period Auto Login End Time Outside Auto Login Period now

 Solution: Boolean flag Auto Login Start Time Auto Login Period Auto Login End Time Outside Auto Login Period now flag

 Problem: auto login after auto shutdown Auto Login Start Time Auto Login Period Auto Login End Time Outside Auto Login Period nowauto shutdown flag

 Solution: global variable autoShutdowntime Auto Login Start Time Auto Login Period Auto Login End Time Outside Auto Login Period nowauto shutdown

 Summary Auto Login Start Time Auto Login Period Auto Login End Time Outside Auto Login Period nowauto shutdown set flag to true os.system(“shutdown –a”) os.system(“shutdown –r –t xxx”)

 hour, minute = shutdownTimes[0].split(':')  dateString = month + "/" + day + "/" + year + " " + hour + ":" + minute + ":" + second  time.mktime(datetime.datetime.strpt ime(dateString, "%m/%d/%Y %H:%M:%S").timetuple()) 

 (urllib2.urlopen(" + bootserver + "/getentityvarval?var=parameter").read()).split('\r\n')

 Why it needs to be improved  Switch Digital Classroom to Windows 7  Reduce power consumption  Expired and webcat accounts can log in.