HELP...security has locked me out (1 Viewer)

pablavo

Registered User.
Local time
Today, 03:56
Joined
Jun 28, 2007
Messages
189
Hi there

I really hope someone can help me.

I used a test database to work on security. I didn't think it would effect other databases. Now I've locked myself out and can't open any databases. I keep getting asked my logon and password for ALL databases.

What can I do? I don't understand why it's effecting me using all databases. Everytime I type a username and what I believe to be the correct Password it wont let me in

Help...
 

gemma-the-husky

Super Moderator
Staff member
Local time
Today, 11:56
Joined
Sep 12, 2006
Messages
15,729
which access version are you using?

try programes run wrkgadm,
and join to

\windows\system32\system.mdw
(might be somewhere alse)


this will disconnect you from the workgroup giving you grief
-------------

look for the new .mdw file and delete it, although that means you will lose the test database ... but if you dont know the password youve had it anyway.

access security is very awkward

once you disable the admin group, you have to be careful

i hope you created a new mdw, and didnt just amend system.mdw


-------------
in later versions I think the wrkgrp admin is integrated into Access, and I am not sure how you can change the startupgroup

- possible open a file with a command line option ....
 

pablavo

Registered User.
Local time
Today, 03:56
Joined
Jun 28, 2007
Messages
189
Hey Gemma, how are you?

I created a new workgroup file without a password to overwite the one I created.

I'm not really sure how to deploy the frontend file to all PC's so that so that it will use the created workgroup file

see the thread:
http://www.access-programmers.co.uk/forums/showthread.php?t=144683

Perhaps you can help...

sorry about the bad joke on that thread :)
 

gemma-the-husky

Super Moderator
Staff member
Local time
Today, 11:56
Joined
Sep 12, 2006
Messages
15,729
i dont think creating a new workgroup named the same will help necessarily - you also need ot be sure you used the correct id string when you created it.

Have you modified your original system.mdw

if not you need to get that one back in use. If you have trashed it, I can post an untouched replacement

--------
you probably wont be able to get at your test dbs, but if it was only a test, it wont be a problem
 

jon jomaco

Registered User.
Local time
Today, 11:56
Joined
May 20, 2005
Messages
41
Ahhh! Please help, i don't what i did, i don't understand what you mean to rectifiy this problem but for all my databases i get the same problem explained here where logon is displayed. Maybe you can explain in simple terms how i can get rid of this? I don't understand what's happened

Thanks, Jon.
 

jon jomaco

Registered User.
Local time
Today, 11:56
Joined
May 20, 2005
Messages
41
Whoa, scared myself then. Thank god it works on my other pc, ok now im not on my knees praying it will work, i was wondering if i simply reinstalled Access would it solve the problem? However, I'm guessing it's not that easy!
 

gemma-the-husky

Super Moderator
Staff member
Local time
Today, 11:56
Joined
Sep 12, 2006
Messages
15,729
you will probably lose the abiility to use your test database

on the good pc find a file called system.mdw

(probably in folder c:\windows\system32)

copy this to overwrite your duff version on the other PC - now you should be OK again
 

jon jomaco

Registered User.
Local time
Today, 11:56
Joined
May 20, 2005
Messages
41
Ah i understand, the reason i wasn't sure before was because i needed to have a more thorough search for it. Strangely i couldn't find it on the new pc (perhaps because it is vista and new so the microsoft office (demo) '07 hasn't even been properly activated yet, but i think more likely because a workgroup file has never been created since office seems to have full functionality at this stage). However, i managed to find and delete system32 on this pc and now it appears to work fine on the most recent backup database. - In fact i think it works on everything

Thanks for your help, rep+ :)
Jon.
 

Rabbie

Super Moderator
Local time
Today, 11:56
Joined
Jul 10, 2007
Messages
5,906
Ah i understand, the reason i wasn't sure before was because i needed to have a more thorough search for it. Strangely i couldn't find it on the new pc (perhaps because it is vista and new so the microsoft office (demo) '07 hasn't even been properly activated yet, but i think more likely because a workgroup file has never been created since office seems to have full functionality at this stage). However, i managed to find and delete system32 on this pc and now it appears to work fine on the most recent backup database. - In fact i think it works on everything

Thanks for your help, rep+ :)
Jon.

I hope you didn't delete the folder c:\windows\system32 or you will have lots of problems. That folder holds most of the .dll files that windows needs to work properly.
 

Dennisk

AWF VIP
Local time
Today, 11:56
Joined
Jul 22, 2004
Messages
1,649
what has happened here is you have used the system.mdw file instead of creating a new .mdw for each secured database. I've done this myself so I now keep a 'clean' copy of system.mdw.

To get into your existing databases, re-install access, this will replace the system.mdw with a clean version. You will now be able to open your existing dbs.
 

jon jomaco

Registered User.
Local time
Today, 11:56
Joined
May 20, 2005
Messages
41
apologies, i meant to say that i deleted system.mdw ! not system32 - oh dear. I won't mess with this stuff again, but dennisk can i ask why deleting system.mdw instead of replacing it with a fresh copy has worked for me?
 

gemma-the-husky

Super Moderator
Staff member
Local time
Today, 11:56
Joined
Sep 12, 2006
Messages
15,729
i suspect access recreates a system.mdw, if it cant find one - check and see!
 

Dennisk

AWF VIP
Local time
Today, 11:56
Joined
Jul 22, 2004
Messages
1,649
yes,
you are correct if Access cannot find a system.mdw it will create a new one. Its just that it is so easy for me to reinstall Access from a network drive.
 

jon jomaco

Registered User.
Local time
Today, 11:56
Joined
May 20, 2005
Messages
41
ah i see and yes just to confirm, system.mdw has been recreated. Except it is now in C:\Documents and Settings\Jon\Application Data\Microsoft\Access instead of in the windows folder :confused: Makes no difference to me, it works!
Jon.
 

gemma-the-husky

Super Moderator
Staff member
Local time
Today, 11:56
Joined
Sep 12, 2006
Messages
15,729
so now DONT TOUCH system.mdw

look at creating a new mdw file to manage your secure databases.
 

jon jomaco

Registered User.
Local time
Today, 11:56
Joined
May 20, 2005
Messages
41
Much thanks, i will look into this in the future!
Jon.
 

statsman

Active member
Local time
Today, 06:56
Joined
Aug 22, 2004
Messages
2,088
For future reference:

Almost everything on Access can be learned by trial and error EXCEPT SECURITY. Do not enter this twilight zone without a detailed step by step guide to assist you.

I would recommend:
http://www.geocities.com/jacksonmacd
download the first file – Security Paper by Jack Macdonald. It’s a little long but it tells you everything you need to know.

The 10 Commandments of Group Level Security

I - Don’t dismiss the Database Password.
Many databases only require a database password, not the Group or User Level Security function. This is especially true of stand-alone databases (only on one computer). Although the database password function may seem tame, many times it’s all that’s required.
While you may use both the Database Password function AND Group Level Security, you should really select one or the other. The two functions (Database Password and Group Level Security) are separate and distinct from one another. By using both, you are not adding to security, you are merely introducing a redundant step.

II - Security is always on.
You can’t turn it off. Even on an “unsecured” database, there is one default user in the security system. (see V)

III - Do not enter the deep waters of Access security without a guide.
Almost everything in Access can be learned by trial and error EXCEPT SECURITY.
Check the posts on security, then download the suggested articles and read them until you understand them. Pay special attention to Users, User Groups and Permissions; how to use them and how to create them. I still have to refer to my guide for assistance each time I use User or Group Level Security.

IV - Turn off your computer.
Now that you have made the decision to proceed with Group or User Level security, turn off your computer. Sit down with a paper and pencil. Figure out before you start what your User Groups are going to be and what permissions you need to assign to them. This is done by identifying the permissions people need to do their jobs.
Examples:
The clerks enter or update data and only require permissions to use the forms that let them do this. They don’t need permissions for anything else.
The president of the company on the other hand is given permissions to view or print all forms and reports.
You must then decide the permissions to be given to everyone in between. The company’s Accounting dept. needs permissions for receivable and payable forms and reports but they don’t require permissions for the clerk’s forms.

Create your User Groups first. Assign permissions to each User Group based on what the group does. You then create individual Users and assign them to the appropriate User Group. This will avoid having to assign individual permissions to every user.

Some User Groups may have a dozen Users, others my have only one.

V - The User “Admin” is no one and everyone.
The person who decided to use that name should be severely chastised. When you start security you will notice that the user Admin is already there. First time around, most people think they’re OK because they assign themselves as Admin based on the false impression that a user named Admin must have special rights and permissions. Admin is only the “Default User”.
By the way, don’t confuse the user Admin with the User Group Admins (notice the “s” in the User Group).

VI - Make a copy of your database and use that.
You will probably mess up the security at least once. While you can undo or make corrections to your secured database, if its’ totally fouled up (which it will be the first few times you try Security), it’s easier to just delete the database and start again on another copy. Don’t forget to delete your .mdw file as well (see IX).

VII - The Owner
When you create a database, Access assigns an owner. The owner is the person who was logged on at the time the database was created. As “Admin” is the default User (See V) “Admin” is normally the database owner.
Regardless of what restrictions you may subsequently place on “Admin”, “Admin” can’t be restricted – after all, he owns the database.
The Final Step in Group Level Security is to make your User name the owner and to delete “Admin”.

VIII – The Administrator
How many people spend their entire career with the same company anymore? When you leave the company you are currently with, it’s likely they will still be using your database. Create an Administrator who has permissions for everything. Place the User Name and Password in a sealed envelope and leave it with your supervisor. If the supervisor leaves the company, change the User Name and Password of your “back door” and give the new information to the new supervisor. This will avoid one of the most common Access Security questions which begins “I inherited this secured database but I can’t make any changes”.

IX - Create a new .mdw file.
Security settings are saved in a Workgroup file which has the extension .mdw The default is System.mdw which is usually located in C:Windows/Settings of your computer.
Each secured database should have its own .mdw file which should be saved in the same folder as the database. When creating it, give it a name other than System.mdw as this may cause problems down the line.
You must include this new .mdw file in the path on the shortcut to the secured database. Anyone trying to open the database will receive a password challenge.

X - Never make changes to the original database.
One of the reasons we used a copy of the database to install security was to leave an intact original or master copy which is kept in a secure area. When changes are required, make them to a copy of your master. When everything in the copy is working properly, make the copy your new master. This way you’ll always have somewhere to go if a disaster occurs.
When backing up, you only need to copy the data that’s in the tables. All the forms, queries, reports, macros etc. are already backed up in your master.
 

jon jomaco

Registered User.
Local time
Today, 11:56
Joined
May 20, 2005
Messages
41
Thanks a lot, i'll take your advice into account. I've favourited the website -i'm sure it will be a good help for future reference.

Jon.
 

Users who are viewing this thread

Top Bottom