way to let users run program as admin iwthout knowing admin password?

way to let users run program as admin iwthout knowing admin password?

Post by Nelson » Mon, 19 Sep 2005 08:24:28


I'm running win XP home with 4 restricted user accounts for 4 kids.

I have two programs that ran OK on WinME and run just fine under an
admin account on XP, but don't run properly under a restricted account.
One is a Disney game. The other is the "well of souls" multi-user game.

I can let the kids run those programs as the admin user using the "Run As"
feature, but to do that they need the admin password, so they're always
asking me to type it in for them.

So, I want a way to allow those just two programs to always run as an
admin user, without having to enter the admin password each time they run.
Is there any way to do that?
 
 
 

way to let users run program as admin iwthout knowing admin password?

Post by Shenan Sta » Mon, 19 Sep 2005 08:44:29


Best thing is to find out what file/folder/registry key they need access to
and change the permissions on that file/folder/registry key.

Easiest way to go about that in your case would be to change the permissions
on the installed applications folder and all sub-folders so the users
(better yet - their group) has full rights to the files there.. Check in the
registry for any keys that the game writes to - especially to
HKEY_LOCAL_MACHINE entries - and give the userrs (better yet - their group)
permissions to said key and try that.

Likely it is as simple as the folder permissions on the applications
directory or on the All Users profile directory... However - it could be
that the game writes to the directory (profile) of the user who first
installed it - but that would be unusual now-a-days.

--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.yqcomputer.com/ ~esr/faqs/smart-questions.html

 
 
 

way to let users run program as admin iwthout knowing admin password?

Post by Z » Mon, 19 Sep 2005 09:04:44


What is the error you get?

What doesn't work?
 
 
 

way to let users run program as admin iwthout knowing admin password?

Post by SeaMai » Mon, 19 Sep 2005 09:06:12

Is that similar to the principle for how Limited Users get rights to burn
CDs by being added to the User Group "Nero"?
 
 
 

way to let users run program as admin iwthout knowing admin password?

Post by Bruce Cham » Mon, 19 Sep 2005 09:22:06


However, you may experience some problems if the software was
designed for Win9x/Me, or if it was intended for WinNT/2K/XP, but was
improperly designed. Quite simply, the application doesn't "know" how to
handle individual user profiles with differing security permissions
levels, or the application is designed to make to make changes to
"off-limits" sections of the Windows registry or protected Windows
system folders.

For example, saved data are often stored in a sub-folder under the
application's folder within C:\Program Files - a place where no
inexperienced or limited user should ever have write permissions.

It may even be that the software requires "write" access to parts
of the registry or protected systems folders/files that are not normally
accessible to regular users. (This *won't* occur if the application is
properly written.) If this does prove to be the case, however, you're
often left with three options: Either grant the necessary users
appropriate higher access privileges (either as Power Users or local
administrators), explicitly grant normal users elevated privileges to
the affected folders and/or part(s) or the registry, or replace the
application with one that was properly designed specifically for
WinNT/2K/XP.

Some Programs Do Not Work If You Log On from Limited Account
http://www.yqcomputer.com/ ;EN-US;q307091

Additionally, here are a couple of tips suggested, in a reply to a
different post, by MS-MVP Kent W. England:

"If your game or application works with admin accounts, but not with
limited accounts, you can fix it to allow limited users to access the
program files folder with "change" capability rather than "read" which
is the default.

C:\>cacls "Program Files\appfolder" /e /t /p users:c

where "appfolder" is the folder where the application is installed.

If you wish to undo these changes, then run

C:\>cacls "Program Files\appfolder" /e /t /p users:r

If you still have a problem with running the program or saving
settings on limited accounts, you may need to change permissions on
the registry keys. Run regedit.exe and go to HKLM\Software\vendor\app,
where "vendor\app" is the key that the software vendor used for your
specific program. Change the permissions on this key to allow Users
full control."



--

Bruce Chambers

Help us help you:
http://www.yqcomputer.com/
http://www.yqcomputer.com/ ~esr/faqs/smart-questions.html

You can have peace. Or you can have freedom. Don't ever count on having
both at once. - RAH
 
 
 

way to let users run program as admin iwthout knowing admin password?

Post by Nelson » Mon, 19 Sep 2005 09:55:03


I've used regmon and gotten TONS of output, none of which was particularly
revealing.


In the "well of souls" case, the program was installed by the restricted
user in his own "My Documents" directory. So, the user already has full
access to the installed files and directories. Since the restricted user
installed the program, presumably the registry keys were also created by
that user, and therefore he has rights to them also. The well of souls
problem is a networking problem. It uses UDP packets (like streaming
audio or video does), and doesn't seem to be able to do them except as
an admin user. It acts like its not on the net when run by the restricted
user, and works fine when run by admin.

The disney game was installed by admin because it insisted on installing
in program files. Problem seems to be with DirectX. It doesn't see to be
able to properly control the screen colors except when running as admin.
It looks OK except colors are all wrong. Tried various Win95 and graphics
compatibility modes. None helped when running as restricted, and none was
needed when running as admin.

I know how to change file/folder permissions in the "Pro" version.
But I've never seen the "Security" tab in file/folder properties in XP Home.
How does one do it in the Home version?

Thanks for your suggestions.
 
 
 

way to let users run program as admin iwthout knowing admin password?

Post by Nelson » Mon, 19 Sep 2005 10:01:31

ruce Chambers wrote:

Does XP home have power users?


That might help with the disney program. The well of souls program was
installed by the restricted user in his own "My documents" directory,
so file/folder access is not an issue for that one.

I fear the registry is so disorganized that finding the relevant parts
of it would be the proverbial needle-haystack excersize.


I'll try these with the disney app.

In the meantime, if someone does find a way to do a WinXP equivalent of
the Unix/Linux "setuid root", do post it here.

Thanks.
 
 
 

way to let users run program as admin iwthout knowing admin password?

Post by MV » Tue, 20 Sep 2005 15:11:55


Hi,

Different RunAs products listed here, some free and some not, some
with encryption option for the password as well:

http://www.yqcomputer.com/ %40hydro.com

Other ones not mentioned in the link above:

SUperior SU (free, has a command line iterface)
http://www.yqcomputer.com/

Supercrypt (as well as LSrunas/LSrunasE)
http://www.yqcomputer.com/

Runasspc
http://www.yqcomputer.com/


You may also want to check out PolicyMaker Application Security
(previously NeoExec), the main difference is that it does not require
the use of a second account, as most other RunAs derivatives requires.

PolicyMaker Application Security
http://www.yqcomputer.com/



--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.yqcomputer.com/
 
 
 

way to let users run program as admin iwthout knowing admin password?

Post by Nelson » Wed, 21 Sep 2005 03:07:57


Thanks. Several of those look promising.

--
Nelson B