Re: Help : Access denied ???



well - you can always set up a directory during deployment and ACL it appropriately - the System.Security.AccessControl namespace provides everything to do that programmatically.

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

Lets replace the Log file by a database for instance.
That database contains the application configuraton setting based on
loged
in user.
So each user is free to modify through a UI its application settings
which
get store to that database. The database is then common and unique for
the
whole application and every user.
Actually that database is installed with my application deployemen
package under Program File folder. Then a normal user to dot have
write access under sub folders.

If I need to share the database location to be read and write access
for every user do I have to define the user right during my
application deployement or do it manually ?

What is the best ?

regards
serge
"Dominick Baier [DevelopMentor]" wrote:

users are isolated by default under windows - the only writable
locations for normal users is the profile - if you want a shared
directory for all users you must create that manually and ACL it
accordingly.

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
Dear all,

I have a windows application that can be use by any user. In order
to check my applciation least priviledge i nee to be sure that my
applciation runs correctly with minimum rights.

One phase of my appliction is that it store some log information in
a file whatever the user logged in. For that I store the log file
under "Application.CommonAppDataPath", as it name explain, its
Common. Common to every use yes but not for writing unless you are
an administrator.

Storing it under Application.LocalUserAppDataPath will generate one
log file for every new user. This is not what I want.

What is the best way tohandle that situation ?

regards
serge


.



Relevant Pages

  • Re: How to attach db with missing log file?
    ... Start SQL Service ... Database fake will appear as suspect in EM ... I support PASS - the definitive, ... > allowing me to get past the missing log file, ...
    (microsoft.public.sqlserver.server)
  • RE: Shrink File?
    ... As my understanding of you problem, you have a database with a data file ... in the log file. ... You can truncate only nonactive portion of the transaction log. ...
    (microsoft.public.sqlserver.setup)
  • Re: PerfMon recording to SQL 2005
    ... seconds or even every ne second) from a busy server to a database on ... On the Perfmon counter Log Files tab, SQL Database has been set, End File ... Configuring the log file, choose the tested DSN as the System DSN ... The user account I created in SQL is an owner of the ...
    (microsoft.public.sqlserver.server)
  • Re: sp_attach_single_file_db
    ... Being that Rob has access to the database and can still ... Stop sql server and rename the existing MDF to a new one and copy the ... Now execute the undocumented DBCC to create a log file ...
    (microsoft.public.sqlserver.server)
  • Transaction log problems
    ... just before you backup the ... database change the recovery model to ... Simple, shrink the log file then change it back to Full, ... >transaction log and it is causing us some problems. ...
    (microsoft.public.sqlserver.server)