Run As...

  • Thread starter Thread starter Bill Brehm
  • Start date Start date
B

Bill Brehm

I know I can press SHIFT and right click on a program and select Run As...
so that I can run a program under another user with a different set of
priviledges.

But is there a way to Run As another user without having to specify that and
give a password each time? I want to have a user log in and that user has no
access rights to the D: drive. But the user can run a program which should
be allowed to write to the D: drive, so it should run as a differnet user
that has those rights. I can't give the user the password or she might just
log off and log back in as the other user and access the D: drive.

I am writing this program myself, so if it requires adding something to the
source code that is ok. I could also imagine that I might be able to put
something in the registry that would make this Run As... a permanent setting
for that particular program.

Any ideas? Thanks.
 
Bill Brehm > said:
I know I can press SHIFT and right click on a program and select Run As...
so that I can run a program under another user with a different set of
priviledges.

But is there a way to Run As another user without having to specify that and
give a password each time? I want to have a user log in and that user has no
access rights to the D: drive. But the user can run a program which should
be allowed to write to the D: drive, so it should run as a differnet user
that has those rights. I can't give the user the password or she might just
log off and log back in as the other user and access the D: drive.

I am writing this program myself, so if it requires adding something to the
source code that is ok. I could also imagine that I might be able to put
something in the registry that would make this Run As... a permanent setting
for that particular program.

Any ideas? Thanks.

You can get your compiled program to spawn a run-as session,
using sanur.exe (http://www.joeware.net/win/free/tools/cpau.htm).
 
I guess you mean CPAU. But if that applet can do it then so should I be able
to. Any clues how to do it from scratch?
 
Back
Top