473,487 Members | 2,622 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Can I grant temp rights to a user in an application

Hello all,

I have two different applications where my application wants to do something
the logged user has not the rights to:

1) Change a HKEY_LOCAL_MACHINE key value. The user has only Local\User
rights and I seem to need Administrator rights. Is it posible to grant in my
program (Windows .NET) temporaly local/administrator rights, knowing the
password. Or is there an other way around?

2) An analoge problem: I want to write a tool that enables/disables
site-access-rules on an ISA server that can be run by any serveroperator
without giving them permanent admin rights. (The other settings of the ISA
server may not been seen/modified by the user)

tnx in advance

Jean Paul
Jul 21 '05 #1
3 1442
hi Jean,

this link might help you in changing security permission for code access.

http://blogs.msdn.com/shawnfa/archiv...09/227534.aspx

regds,
Kannan.V

"jean-dot-paul-at-opelwilly-dot-com" wrote:
Hello all,

I have two different applications where my application wants to do something
the logged user has not the rights to:

1) Change a HKEY_LOCAL_MACHINE key value. The user has only Local\User
rights and I seem to need Administrator rights. Is it posible to grant in my
program (Windows .NET) temporaly local/administrator rights, knowing the
password. Or is there an other way around?

2) An analoge problem: I want to write a tool that enables/disables
site-access-rules on an ISA server that can be run by any serveroperator
without giving them permanent admin rights. (The other settings of the ISA
server may not been seen/modified by the user)

tnx in advance

Jean Paul

Jul 21 '05 #2
Kannan,

Tnx for reply,

Your sugestion don't not give me a solution. Even if I give 'full trust ' to
the application, the user rights limits my user to write to the LOCAL
MACHINE regkeys.

If I make him administrator there is not a problem but even SuperUsers can't
access the reg.

If you, or others, happens to have more idee's, let them come

Jean Paul
-------------------------------------------------------------------------------------
C# is Second finger high on the A
"Kannan.V [MCAD.net]" <Ka************@discussions.microsoft.com> schreef in
bericht news:F3**********************************@microsof t.com...
hi Jean,

this link might help you in changing security permission for code access.

http://blogs.msdn.com/shawnfa/archiv...09/227534.aspx

regds,
Kannan.V

"jean-dot-paul-at-opelwilly-dot-com" wrote:
Hello all,

I have two different applications where my application wants to do
something
the logged user has not the rights to:

1) Change a HKEY_LOCAL_MACHINE key value. The user has only Local\User
rights and I seem to need Administrator rights. Is it posible to grant in
my
program (Windows .NET) temporaly local/administrator rights, knowing the
password. Or is there an other way around?

2) An analoge problem: I want to write a tool that enables/disables
site-access-rules on an ISA server that can be run by any serveroperator
without giving them permanent admin rights. (The other settings of the
ISA
server may not been seen/modified by the user)

tnx in advance

Jean Paul

Jul 21 '05 #3
Hello Jean Paul

I think you said that you know the administrator account credentials, so you
could impersonate that account, see link:

http://support.microsoft.com/kb/306158/EN-US/

Dave

"jean-dot-paul-at-opelwilly-dot-com" wrote:
Hello all,

I have two different applications where my application wants to do something
the logged user has not the rights to:

1) Change a HKEY_LOCAL_MACHINE key value. The user has only Local\User
rights and I seem to need Administrator rights. Is it posible to grant in my
program (Windows .NET) temporaly local/administrator rights, knowing the
password. Or is there an other way around?

2) An analoge problem: I want to write a tool that enables/disables
site-access-rules on an ISA server that can be run by any serveroperator
without giving them permanent admin rights. (The other settings of the ISA
server may not been seen/modified by the user)

tnx in advance

Jean Paul

Jul 21 '05 #4

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

Similar topics

12
3895
by: | last post by:
I issued the mysql command Grant all on *.* to myid@localhost identified as "mypw"; and recieved the error message ERROR 1045: Access denied for user" '@localhost' (Using password: NO) I...
0
1536
by: Derek | last post by:
I am writing an ASP.NET application that can add and remove items to the task scheduler. This works fine on Windows XP, but generates an Exception on Windows 2003:...
0
1959
by: Engwar | last post by:
I have a web application. We have two users in the db. One for the standard website user who has only read access to the db. The other is an admin user that has full access so I can create, alter...
0
1183
by: Markus | last post by:
hi, is there a way to set up an user, how only have restricted admin rights on mysql server. this user only should be able to create DBs (and drop them) and set grants on this new DB. i think...
1
1441
by: Radu | last post by:
Hi. Thru a sproc, I drop & re-create some temp tables. When I call that sproc from the client, though, I cannot drop the tables. I need to allow the user, say "Alex", to drop/create tables...
2
4466
by: Eric | last post by:
Hi, I am pretty new to DB2 (and SQL as well), and run into a few questions: 1) Is there anybody that knows if there is a way to write the following in one SQL statement?: grant select on...
3
1767
by: jean-dot-paul-at-opelwilly-dot-com | last post by:
Hello all, I have two different applications where my application wants to do something the logged user has not the rights to: 1) Change a HKEY_LOCAL_MACHINE key value. The user has only...
3
1753
by: Chris Ochs | last post by:
Is there a shortcut to grant all privileges on a schema and it's objects to a user without having to issue GRANT statements for each individual object in the schema? Given all the possible types...
1
15360
by: zeus | last post by:
Hi there, I am using Postgresql 7.3 and I want to grant select rights to a user on all tables in a schema, including those that may be created in the future but whose names are not yet known. I...
0
7106
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
7181
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6846
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
7349
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...
1
4874
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4565
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3076
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
600
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
267
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.