How to selectively set user permissions in Vista?

D

Disconnected

I am starting to write .NET applications and would like to create a
User Account that I can use for testing, that has a specific range of
permissions relevant to the application I am testing.

File Permissions I can set by going to the directory.

However, I cannot see where/how you set more esoteric permissions like
"EventLogPermission" needed to read/write to the Vista Event Logs.

Is there a Vista utility where you can specify a User Account, then
assign whatever permissions you require?

Or if not, what is the general method of assigning these very specific
type of permissions?

Thanks for any help in advance.

Steve
http://www.appetere.com
 
S

Synapse Syndrome

Disconnected said:
I am starting to write .NET applications and would like to create a
User Account that I can use for testing, that has a specific range of
permissions relevant to the application I am testing.

File Permissions I can set by going to the directory.

However, I cannot see where/how you set more esoteric permissions like
"EventLogPermission" needed to read/write to the Vista Event Logs.

Is there a Vista utility where you can specify a User Account, then
assign whatever permissions you require?

Or if not, what is the general method of assigning these very specific
type of permissions?

Thanks for any help in advance.


Can't this be done in that Control Panel item in Administrative Tools, for
Microsoft .NET Framework Configuration?

ss.
 
P

Paul Montgumdrop

Disconnected said:
I am starting to write .NET applications and would like to create a
User Account that I can use for testing, that has a specific range of
permissions relevant to the application I am testing.

File Permissions I can set by going to the directory.

However, I cannot see where/how you set more esoteric permissions like
"EventLogPermission" needed to read/write to the Vista Event Logs.

You can't set Eventlog permissions in .Net on the eventlog such as
System or any other such type Eventlog, even a custom one that you have
created that I know about. The program will have the ability to
create an eventlog, write to the eventlog or clear the eventlog, which
is controlled by you the programmer.
Is there a Vista utility where you can specify a User Account, then
assign whatever permissions you require?


Yeah, there is a utility that's called Administrative Tools on Vista
just like on any other NT based O/S that allows the Administrator of the
computer to create, update, delete a user account and its permissions.

You create the account based on the permissions you need, you log onto
the computer using the account and you test the program under that
account to test permissions.
Or if not, what is the general method of assigning these very specific
type of permissions?

I don't know what you are talking about. At best, there are .Net
Framework utilities that you can invoke at the .Net Command Prompt or
the .Net Framework Admin tools, which would be off of Control
Panel/Administrative Tools, to set a .Net program's trust level.

If you need to control who can write to a log file, then you need to be
writing log information to a textfile called mylog.txt or something and
set permissions on the file using NTFS by user account.

Lastly, you need to be posting to a .Net developer's NG that are at
msnews.microsoft.com to get more information, because you are posting to
the wrong NG.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top