• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.

How do I set a program to run with Administrator privileges?

M

Mark F

Flightless Bird
How do I set a program to run with Administrator privileges?


I know that I can turn off User Account Control (UAC) if I am running
from an Administrator account, but then UAC if off until I turn it
on.

I want to flag a specific file as running with administrator
privileges.

It would be nice if the system monitored the file from then on to
ensure that the contents didn't change.

Two options are required:
. File always runs elevated
. file runs elevated if started by a user who has the privilege
to allow running elevated. (It is up to me to make sure that
I only use this "always run elevated" option on programs that
make sure that they can't be tricked into using such elevated
rights to access data that is not intended. This shouldn't
be a problem since it is how things have worked since before
1964.)


(I've posted about this before, but I recently saw an article in
a major computer magazine that suggests turning off UAC for
your process if you want to be able to run a program with elevated
privileges and not have to manually authorize it each time.)
 
G

Gordon

Flightless Bird
"Mark F" <mark53916@gmail.com> wrote in message
news:vq0cr51rcq4c1odp3qc47u4m0cmgoo0152@4ax.com...
> This shouldn't be a problem since it is how things have worked since
> before
> 1964.)



Typo? :)
 
D

Dave-UK

Flightless Bird
"Mark F" <mark53916@gmail.com> wrote in message news:vq0cr51rcq4c1odp3qc47u4m0cmgoo0152@4ax.com...
> How do I set a program to run with Administrator privileges?
>
>
> I know that I can turn off User Account Control (UAC) if I am running
> from an Administrator account, but then UAC if off until I turn it
> on.
>
> I want to flag a specific file as running with administrator
> privileges.
>
> It would be nice if the system monitored the file from then on to
> ensure that the contents didn't change.
>
> Two options are required:
> . File always runs elevated
> . file runs elevated if started by a user who has the privilege
> to allow running elevated. (It is up to me to make sure that
> I only use this "always run elevated" option on programs that
> make sure that they can't be tricked into using such elevated
> rights to access data that is not intended. This shouldn't
> be a problem since it is how things have worked since before
> 1964.)
>
>
> (I've posted about this before, but I recently saw an article in
> a major computer magazine that suggests turning off UAC for
> your process if you want to be able to run a program with elevated
> privileges and not have to manually authorize it each time.)


You can't easily select one program to dodge UAC. There was a method I read
about regarding Vista, but it involved downloading some sort of Microsoft
developer software and creating a database of safe programs.
As UAC regards Program Files as a sensitive folder you could try uninstalling your
troublesome software and re-installing to C:/Users instead of C:/Program Files.
That sometimes works but the real fix is to get the software updated to run with UAC.
 
Top