Technical Field
This invention relates to computer systems, and more particularly to personal computers which provide multiple access domains.
Background of the Invention
U.S. Pat. No. 4,959,860 discloses a power-on password security function for a personal computer. A battery-powered RAM storage area is used to hold the password when the system is turned off. However, it does not disclose access by multiple persons.
The ISC UNIX program provides that the password for the system administrator (root) could be entered when logging in as any user. However, this is implemented as part of the login program and is specific to that application.
System administrators or owners often need to act on behalf of end users of the machine, but they do not participate when the users' passwords are set. System administrators have their access to user's systems restricted when a user sets a password. Typically, the system administrator must identify himself to the system as the administrator, then use some roundabout fix; e.g., reset the user password.
What is needed is a simplified method for the administrator or owner to access a computer on behalf of someone else.
Summary of the Invention
The foregoing problems are solved, and a technical advance is achieved, by the provision of an apparatus and a method for hierarchical password acceptance. This invention allows a hierarchy of privileged users, of which the system administrator and owner are two possibilities. The system administrator or owner need only enter his own password to act as the user. This invention allows the end user to have the password of his choice, but allows an owner or an administrator to have the exact access that a chosen end user would have.
A computer has user IDs stored in an EEROM, and user passwords associated with each stored user ID. A command from the CPU directs a coprocessor in the computer to read a password for a first ID. The coprocessor compares the password entered by the user with the password for the first ID. If the entered password matches the password for the first ID, the coprocessor reports that the password for the first ID was entered correctly. If the entered password does not match the password for the first ID, the coprocessor compares the entered password with a password for a second ID. If the entered password matches the password for the second ID, and if the second ID dominates the first ID, the coprocessor reports that the password for the first ID was entered correctly.
In another feature of the invention, the rights of the administrator include all those of an end user, and the rights of the owner include all those of the administrator.
In another feature of the invention, the passwords are processed in a secure processor, independent from the processor which runs the operating system and user applications.
Brief Description of the Drawings
The above-noted and other aspects of the present invention will become more apparent from a description of the preferred embodiment when read in conjunction with the accompanying drawings. The drawings illustrate the preferred embodiment of the invention. In the drawings the same members have the same reference numerals.
FIG. 1 is a schematic plan view of a computer employing an EEROM with stored passwords according to the present invention; and
FIG. 2 is a flow chart depicting the method of the present invention.
Detailed Description of the Preferred Embodiment
FIG. 1 is a schematic plan view of a computer 10 which includes a central processing unit, or CPU 12. The CPU 12 is conductively coupled to an input/output coprocessor 14, which in the preferred embodiment is an Intel Model No. 8051 processor. The coprocessor 14 handles the security functions of the computer 10. That is, when the owner, administrator, and end user input their passwords, the coprocessor 14 stores the passwords in a EEROM 16, which is conductively coupled to the coprocessor 14. The owner, administrator, and end user identities, IDs, are stored in the EEROM 16, but could also be stored in other locations. A locking device 17 is conductively coupled to the coprocessor 14, and is used by the coprocessor 14 to lock out the end user from certain functions of the computer 10 reserved for the owner or administrator, and to lock out the administrator from certain functions of the computer 10 reserved for the owner. The locking function can also be done by trustworthy software on the CPU; for example, the boot code.
Referring now to FIG. 2, a flow chart shows the method of the present invention. When a user attempts to use the computer 10, either upon power-on initialization, or upon a reboot initialization, the CPU 12 in step 20 commands the coprocessor 14 to require entry of a password for a user ID U. The CPU 12 may command the coprocessor 14 to require entry of a password to perform other functions. Depending on the attempted use, U may be the owner, an administrator, or merely a user. The owner is allowed any and all uses of the computer 10. The administrator is excluded from some of the owner's uses of the computer 10. The user is excluded from some of the owner's uses of the computer 10, and from some of the administrator's uses of the computer 10.
In response to the command of step 20, in step 22 the coprocessor 14 accepts entry of a password P. In step 24 the coprocessor 14 tests the password P to see if it matches the value stored in the EEROM 16 for the password of the user ID U. If it matches, then the coprocessor 14 is finished with the security check, as indicated in step 36. If it does not match, then in step 26 the coprocessor 14 checks the EEROM 16 to see if more user IDs are stored. If no more user IDs are stored in the EEROM 16, then the coprocessor 14 returns to step 22 to accept entry of other passwords.
If other user IDs are stored in the EEROM 16, then in step 28 the coprocessor 14 gets the next user ID U' from the EEROM 16. In step 30 the coprocessor 14 tests to see if the user ID U' dominates the user ID U. Owner dominates administrator, which dominates user. If the user ID U' does not dominate the user ID U, then the coprocessor 14 returns to step 26, and checks the EEROM 16 to see if more user IDs are stored. If the user ID U' does dominate the user ID U, then the coprocessor 14 looks up the password P' stored for the user ID U'. In step 34 the coprocessor 14 tests the password P to see if it matches the password P'. If it matches, then the coprocessor 14 is finished with the security check, as indicated in step 36. If it does not match, then the coprocessor 14 returns to the step 26 and accepts entry of another password.
In summary, when commanded to require entry of the administrator password the coprocessor 14 accepts entry of the administrator or owner passwords. When commanded to require entry of the owner password, the coprocessor 14 accepts entry of only the owner password.
Although an illustrative embodiment of the invention has been shown and described, other modifications, changes and substitutions are intended in the foregoing disclosure. For example, the invention is not limited to a hierarchy of only three levels. The hierarchy could contain as many levels as desired. The invention is not limited to a hierarchy; the ID's need only form a partial order. The passwords could be stored on a WORM drive, a tape drive, in an EPROM, or even in a battery-powered RAM. Accordingly, it is appropriate that the appended claims be construed broadly and consistently with the scope of the invention.