R
rolock
**** Post for FREE via your newsreader at post.usenet.com ****
I am trying to make use of the runas feature in XP home to enable a user
(child) with limited account to run an application as a privileged
user. The particular application will run properly from an account with
administrator privileges, but not from a limited account.
Based on previous postings to this group, I have experimented with the
runas feature from the limited user account, but am having some
difficulty. If I right-click on the application icon (or a shortcut to
same) and choose runas, I can then enter a username and password into a
dialog box and the application works properly.
If, on the other hand, I enter the runas command into the Target
location of the Properties dialog of a shortcut to the application, and
attempt to open the application, then I get all sorts of complaints
about not being able to access certain files. It seems that the
application is being started from the root directory where the runas
command is located rather than from the root directory where the
application is located.
In particular the application is looking for files in
c:\windows\system32\application_directory (which does not exist), rather
than in c:\program_files\application_directory (which does exist and is
the proper location for the required files).
It does not seem to matter what path is entered in the Start In field of
the Properties dialog for the shortcut, or whether the /profile or the
/no profile options are given to the runas command. Any ideas on how to
get this command line version of runas working?
Joshua
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*** Usenet.com - The #1 Usenet Newsgroup Service on The Planet! ***
http://www.usenet.com
Unlimited Download - 19 Seperate Servers - 90,000 groups - Uncensored
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
I am trying to make use of the runas feature in XP home to enable a user
(child) with limited account to run an application as a privileged
user. The particular application will run properly from an account with
administrator privileges, but not from a limited account.
Based on previous postings to this group, I have experimented with the
runas feature from the limited user account, but am having some
difficulty. If I right-click on the application icon (or a shortcut to
same) and choose runas, I can then enter a username and password into a
dialog box and the application works properly.
If, on the other hand, I enter the runas command into the Target
location of the Properties dialog of a shortcut to the application, and
attempt to open the application, then I get all sorts of complaints
about not being able to access certain files. It seems that the
application is being started from the root directory where the runas
command is located rather than from the root directory where the
application is located.
In particular the application is looking for files in
c:\windows\system32\application_directory (which does not exist), rather
than in c:\program_files\application_directory (which does exist and is
the proper location for the required files).
It does not seem to matter what path is entered in the Start In field of
the Properties dialog for the shortcut, or whether the /profile or the
/no profile options are given to the runas command. Any ideas on how to
get this command line version of runas working?
Joshua
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*** Usenet.com - The #1 Usenet Newsgroup Service on The Planet! ***
http://www.usenet.com
Unlimited Download - 19 Seperate Servers - 90,000 groups - Uncensored
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=