473,396 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

House of straw security

I've just experienced something of a startling revelation. I thought I had
my application reasonably well secured - I distribute only the MDE, use
password login, have the database window hidden, with no bypass. I control
access to reports through menus, and roles that I've set up in the
application.

Print preview anything. Form, report, anything - the toolbar that appears
has a button on it - Database Window. Sure enough it opens the database
window and reveals everything.

Is there anything that I can do to stop users from getting at the database
window? Is there anything that I can do to stop them from opening forms and
reports that I don't want them to? I don't suppose there is an Event that
occurs when the database window is unhidden?

Nov 13 '05 #1
4 1148
"Randy Harris" <ra***@SpamFree.com> wrote in message
news:C7***************@newssvr19.news.prodigy.com. ..

Print preview anything. Form, report, anything - the toolbar that appears
has a button on it - Database Window. Sure enough it opens the database
window and reveals everything.

Is there anything that I can do to stop users from getting at the database
window? Is there anything that I can do to stop them from opening forms
and
reports that I don't want them to? I don't suppose there is an Event that
occurs when the database window is unhidden?

Use custom menus and deny access to built-in menus for a start. Have you
had a look at Tools ... Startup? Also make sure that you either disable
shortcut menus (right-click) or have your own custom ones that don't feature
the likes of "Design View".

Regards,
Keith.
www.keithwilby.com
Nov 13 '05 #2
"Randy Harris" <ra***@SpamFree.com> schreef in bericht news:C7***************@newssvr19.news.prodigy.com. ..
I've just experienced something of a startling revelation. I thought I had
my application reasonably well secured - I distribute only the MDE, use
password login, have the database window hidden, with no bypass. I control
access to reports through menus, and roles that I've set up in the
application.

Print preview anything. Form, report, anything - the toolbar that appears
has a button on it - Database Window. Sure enough it opens the database
window and reveals everything.

Is there anything that I can do to stop users from getting at the database
window? Is there anything that I can do to stop them from opening forms and
reports that I don't want them to? I don't suppose there is an Event that
occurs when the database window is unhidden?


Hi Randy,
You know that *every* user (if determined) can bypass your 'no bypass' don't you ?
So: *every* user can get access to the database window AFAIK.

I think you will need to use User level Security here, and this is not a trivial task.
For me, hiding the code (using mde) is enough, but if I want to stop users from opening certain forms I sometimes use 'openargs' like:
If IsNull(Me.openargs) then msgbox "I told you not to open this form, your files are deleted ..." opened from db window

For reports I think this is also possible starting with Access 2003.

Arno R
Nov 13 '05 #3
Perhaps this might help:

Public Sub DoToolBarTweaks()
' remove "Database Window" and "New Object" buttons from "Form View"
toolbar
Dim tbo As Object
For Each tbo In CommandBars("Form View").Controls
If tbo.id = 577 Or tbo.id = 2599 Then
tbo.Visible = False
End If
Next
End Sub

Nov 13 '05 #4
MDE is primarily to protect your code from being inadvertently changed by
the user. Where did you get the idea that it provided full application
security? Google this newsgroup for a reference to the Security Whitepaper.
However, even if you use user/group security as detailed in those 39 pages,
you have to do it right, and even so, it can still be broken.

Larry Linson
Microsoft Access MVP
"Randy Harris" <ra***@SpamFree.com> wrote in message
news:C7***************@newssvr19.news.prodigy.com. ..
I've just experienced something of a startling revelation. I thought I had my application reasonably well secured - I distribute only the MDE, use
password login, have the database window hidden, with no bypass. I control access to reports through menus, and roles that I've set up in the
application.

Print preview anything. Form, report, anything - the toolbar that appears
has a button on it - Database Window. Sure enough it opens the database
window and reveals everything.

Is there anything that I can do to stop users from getting at the database
window? Is there anything that I can do to stop them from opening forms and reports that I don't want them to? I don't suppose there is an Event that
occurs when the database window is unhidden?

Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

44
by: Carl | last post by:
"Nine Language Performance Round-up: Benchmarking Math & File I/O" http://www.osnews.com/story.php?news_id=5602 I think this is an unfair comparison! I wouldn't dream of developing a numerical...
10
by: mwdsmith | last post by:
Hi, I'm new to python, and I'm not sure if this is the place to post this kind of question; so feel free to tell me if I should take this elsewhere. So, to start me off on python, I decided to...
0
by: louis | last post by:
For those in the DFW area, there's an IT open house at Perot Systems. (In my group, we're looking to hire one senior sql server DBA. Go to the perot systems web site to apply). ...
1
by: Chua Wen Ching | last post by:
Hi, I am wonder how those guys created obfuscators? Is there anyone can share how you actually created it? Can i use .net to create an obfuscator for .net assemblies? or language doesn't...
3
by: rperetz | last post by:
Hi all, I was given a task to create a houseHolding logic under a table that have millions records. first let me explain what is a house holding: let's say I have 2 records that have the same...
0
by: =?ISO-8859-2?Q?Miros=B3aw?= Makowiecki | last post by:
How do library name which it implementation a straw in C++ language by next of any alocator. This straw has property like what pipe width C language at unix. THans in advance.
1
by: Gemmalouise1988 | last post by:
Hi everyone, My most important college assignment to date seems pretty basic on the outside but I'm sure this will interest a few of you. If you see this document:...
6
by: Arben | last post by:
Can anyone halp me to write the Java code for thid exercise? -------------------------------------------------------------------------------------------------------------- Exercise: Use the class...
2
by: Stef Mientki | last post by:
hello, In the code below, I can build a large street like this: large_street = house * 25 but not a small street. like this: small_street = 5 * house Why is this different ? And more...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.