|
The ANW.BIZ Home Page
| |
Access - add a user
- Log on with administrator's rights
- Menu: Tools > Security > User and Group Accounts
- Type in a new user name in the "Name" box (example:
"two")
- Make the new user a "Member Of" groups you select
from the "Available Groups" list.
- Click on "OK"
- Exit from the application and from Access
- Log on as the user you have just created. At this
stage the user does not have a password.
- Menu: Tools > Security > User and Group Accounts
- Click on the "Change Logon Password" tab.
- Enter the user's password in the "New Password" box
and again in the "Verify" box.
- Click on "Apply" and then on "OK".
- To test the password,
- exit from the application and from Access.
- Log on as the user you have just created.
- This time you will need the password you have
just created.
Securing an Access Database
(Access Frequently Asked Questions - MS website - secfaq.asp)
- Use the Workgroup Administrator program (Wrkgadm.exe) to create a new
workgroup information file.
- The default is called System.mda in Microsoft Access 2.0 and
System.mdw in Microsoft Access 95 and Microsoft Access 97.
- Write down the Name, Organization, and WorkGroup ID strings that you
will be prompted for when creating your new workgroup information file
and store them in a safe place.
- If your workgroup information file ever becomes lost or corrupted,
you can reconstruct it using these identical strings, which are then
encrypted to create a unique token. Without a valid workgroup
information file, you could conceivably be locked out of your database
forever.
- The Workgroup Administrator automatically logs you on using the new
workgroup information file.
- Open any database.
- You'll be logged on as a user named Admin.
- Select Security > Change Password in Microsoft Access 2.0 and Tools
> Security > User and Group Accounts in Microsoft Access 95 and
Microsoft Access 97 to add a password for the Admin user.
- The Admin user is the default account, and setting its password is
what "activates" security.
- Create a new user, which is the account you will use to secure the
database.
- Add this new user to the Admins group.
- Write down the strings that you use for the name and PID in case you
ever need to recreate your workgroup information file.
- The PID is not the password - it is encrypted, along with the Name,
to create a unique token identifying the user.
- Quit Microsoft Access
- Log back on as the new user account you created in step 5.
- You will not have a password for this account yet, so now is a good
time to set one.
- Remove the Admin user from the Admins group so that Admin is a member
only of the Users group.
- There have been several books published stating that you can delete
the Admin user, but this is not true in Microsoft Access 2.0, Microsoft
Access 95, or Microsoft Access 97. You cannot delete any of the built-in
users or groups.
- Open the database you want to secure and run the Security Wizard.
- Select the objects you want to secure (it makes sense to secure them
all).
- The wizard will then create a new database which will be owned by
your new user and import all of the objects and relationships into it.
- It will also remove all permissions from the Admin user and the
Users group and encrypt the new database.
- The original database will not be altered.
- Open the new database.
- Because the Security Wizard removed permissions from the Users
group, you need to create your own custom groups and assign the level of
permissions needed to these groups.
- Because everyone is a member of the Users group (otherwise, a user
would not be able to start Microsoft Access), only grant permissions to
it that you want everyone to have.
- Do not place people in the Admins group because its members have
irrevocable power to administer database objects, which is not what you
want.
- Create your own users and assign them to the groups that reflect the
level of permissions you want them to have.
- Do not assign permissions directly to users because that is
extremely hard to administer.
- Users inherit permissions from the groups they are members of, and
keeping track of the permissions assigned to a group is much easier than
keeping track of the separate permissions of individuals.
- If a user is a member of multiple groups, then that user will have
all of permissions granted to any of those groups plus any permissions
assigned specifically to the user (the "least restrictive" rule).
- Additionally, you will need to remove the Open/Run permission from the
database container for the Users group manually through the security menus
or through code.
- The Security Wizard in Microsoft Access 2.0 and Microsoft Access 95
does not do this
- This will prevent someone from opening the database by using another
workgroup information file or the default System.mda/mdw.
The User Level Security Wizard that ships with Microsoft Access 97 now
removes the Open/Run database permissions for the Users group (not on my
version at Orange it didn't - if you don't do it manually anyone can get
in).
Published: 10 Feb 2004
Last edited:
29 July 2006 23:26
|