[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

08/19/2003 at 03:43PM PDT, ID: 20714349
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

4.4

How to secure a log file so that Users can only append data?

Asked by Enlade in Visual Basic Programming

Tags: file, allow, create


Well, this sounds like a pretty simple question.  But I just can’t seem to get the Permissions to work properly under windows (Win2k3 Server, WinXP, WinNT, etc), such that I can secure a LOG file from the user.  I'm testing this on Win2k3 server at this time, but it actually needs to work on WinXP computers that are connected to a WinNT server (on a NT domain).

Basically, I have written a mess of calls to an audit function within my program that opens up a log file for append access.  You know something like this (though I have tried a few other ways (TextStream etc…)):

Open FFN For Append As #1
Print #1, stEventLine
Close #1

Then during installation I log on as the administrator and create the log file (FFN).  I then try to set the privileges under WinXP to allow the “Users” group to only have append privileges to that file.  However, I get the strangest, unexplainable, weird, reaction to any changes to the privileges.  When I set it for append only I still got an access error when trying to append to the log file.

Stranger still, when I set the “Users” to deny read access for some reason the Administrator also got read access denied.  All sorts of other strange stuff happened, but that isn’t important for this question.  I’m just interested in Append for now.

I also created a separate group and tried to set its privileges rather then using the “Users” group, but that had the same results.  I also set the directory privileges as well as the files privileges but I still got the access error when trying to append (as a user).

I have also messed around with inheritance.  Turning it on and turning it off.  What seemed to work best was to set the folder permissions first and while doing that check the checkbox that says to “Replace permissions on all child objects”, and to also turn off inheritance.  But nothing I do allows for append only.  I always get an permission denied error when I try anything while logged in as a user.

Basically, I just need some advice on how to set up the privileges on a log file so that some set of users (either the “Users” group or some other group) has only append access (they can have read access as well, but not delete or write—this is to say that I want to allow users to append to the file but not change existing data or delete existing data).  Also, I need to know how to write the code to append to that file (is it just a simple open for append like above)?
[+][-]08/19/03 03:46 PM, ID: 9184494

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/19/03 03:51 PM, ID: 9184513

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/19/03 03:52 PM, ID: 9184519

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/19/03 10:54 PM, ID: 9186021

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/20/03 01:20 PM, ID: 9191053

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/20/03 07:34 PM, ID: 9192738

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/20/03 10:44 PM, ID: 9193329

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/21/03 08:46 AM, ID: 9196403

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/21/03 10:37 PM, ID: 9200932

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/01/03 01:30 AM, ID: 9260323

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/01/03 05:01 AM, ID: 9261113

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/01/03 06:12 AM, ID: 9261440

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/01/03 08:13 AM, ID: 9262045

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09/01/03 07:32 PM, ID: 9264413

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/02/03 12:20 AM, ID: 9265412

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/02/03 06:46 AM, ID: 9267176

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09/02/03 08:15 AM, ID: 9267843

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/02/03 08:32 AM, ID: 9267980

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/02/03 10:45 PM, ID: 9272143

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/03/03 12:33 AM, ID: 9272626

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/03/03 08:59 AM, ID: 9278369

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/03/03 11:49 PM, ID: 9285662

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Visual Basic Programming
Tags: file, allow, create
Sign Up Now!
Solution Provided By: Steiner
Participating Experts: 3
Solution Grade: A
 
 
[+][-]11/15/03 01:32 PM, ID: 9755826

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]11/17/03 06:36 AM, ID: 9763719

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/17/03 01:35 PM, ID: 9767078

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-91