Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

(ORG-8018) Project Protection

...

and Admin

...

Mode

Table of Contents
minLevel2

We have introduced the concept of Admin Mode to the Origin Project, with an Admin password. Once a project is protected by a password, worksheet and workbook protection features can be accessed only after user has logined with the admin password. We have also added LabTalk access to protect books and sheets.

App Title Bar Indication of Admin Mode

Normally, Origin title bar looks like this

 Image Removed

there is a "-" that separates the 32/64 bit and the path of the file. To save space, we are just changing this "-" character to indicate Admin status.

For OPJ file that has added Admin password, the "-" character will be replaced by the "@" character before you enter the Admin password to login, like this

Image Removed

After login, the "@" character is replaced by the "=" character, like this

Image Removed

Admin Mode LabTalk Commands

The following is a listing of the currently supported doc commands control the Admin mode. Text inside square brackets indicate.

CommandDescription     Examples        
doc -pwa [password]

Add Admin password password to the project. You will still need to login after adding password to turn on Admin mode.

When you do not specify a password, then "origin" is assumed. Not using password will help situation where security is not so much of a concern and not running the risk of forgetting the password used.

doc -pwa

doc -pwa test

doc -pw [password]login with password, if no Admin password added yet, error message will be shown

doc -pw;

doc -pw test;

doc -pwxlogout, once logout, cannot change anything related to protections 
doc -pwtalist all the book/sheets with protection turned on 
doc -pwr [password]remove password, if no password specified, then must login first to do so, otherwise must give correct passworddoc -pwr;

After a command is entered, you App title will change accordingly, so will the status bar to indicate current statusLabTalk commands to enable various protections on worksheets and workbooks have been introduced in Origin 9.1. Further mode, Admin mode has been introduced to allow better protection controls on Origin projects. You may control protection attributes of Origin object (like a book) without involving Admin mode, but such protection is not secured, anyone can run LabTalk command to remove these protections. To ensure secured protection, you must setup Admin password for the Origin project and then Origin Object protections cannot be altered until the correct password is entered. Very often, security is not an issue and you may just want to prevent inadvertent or accidental modification or delete of certain book or sheet, and in such situation, you may add protection without Admin password, which certainly make things easier, not having to remember a password on given OPJ.

Protection Flags

 Various objects like worksheet, workbooks can be assigned different protection flags. These flags are listed in the following table

...

CommandDescription          Examples       

layer -lw n

set worksheet write access flags

lay -lw hex(82);//set active sheet to protect data and structure

lay -lw;//protect everything

lay -lw 2;// protect only data

lay -lw hex(180);//no insert/del col/rows, no worksheet rename

lay -lw 0;//remove all the protections on the current sheet

layer -lt print out current protection flags 
page -lw nset workbook write access flags

 //the following will prepare the book for locking active sheet but allow analysis results added to book

lay -lw hex(582);//no del, no rename, no add/insert/move col/rows, no edit

page -lw hex(400);//no del book

 

 page -lt print out the current protection flags

page -lw;//lock book and all sheets, nothing can be change and cannot delete book or sheets

page -lw hex(400);//prevent user deleting the book

page -lw; //lock the book completely, cannot even delete

page -lw hex(482); //lock delete, structure change and data edit

 

Admin Mode

We have introduced the concept of Admin Mode to the Origin Project, with an Admin password. Once a project is protected by a password, worksheet and workbook protection features can be accessed only after user has logined with the admin password. We have also added LabTalk access to protect books and sheets.

The following is a listing of the currently supported doc commands control the Admin mode. Text inside square brackets indicate.

...

CommandDescription     Examples        
doc -pwa [password]

Add Admin password password to the project. You will still need to login after adding password to turn on Admin mode.

When you do not specify a password, then "origin" is assumed. Not using password will help situation where security is not so much of a concern and not running the risk of forgetting the password used.

doc -pwa

doc -pwa test

doc -pw [password]login with password, if no Admin password added yet, error message will be shown

doc -pw;

doc -pw test;

doc -pwxlogout, once logout, cannot change anything related to protections 
doc -pwtalist all the book/sheets with protection turned on 
doc -pwr [password]remove password, if no password specified, then must login first to do so, otherwise must give correct passworddoc -pwr;

After a command is entered, you App title will change accordingly, so will the status bar to indicate current status.

App Title Bar Indication of Admin Mode

Normally, Origin title bar looks like this

 Image Added

there is a "-" that separates the 32/64 bit and the path of the file. To save space, we are just changing this "-" character to indicate Admin status.

For OPJ file that has added Admin password, the "-" character will be replaced by the "@" character before you enter the Admin password to login, like this

Image Added

After login, the "@" character is replaced by the "=" character, like this

Image Added

Admin Mode and Saving of OPJ

...