Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UAC

Status
Not open for further replies.

popeiler

Programmer
Nov 16, 2009
1
0
0
US
Hi all,

I upgraded to seven from XP about a week ago and found that UAC, rather than being an annoying warning, is actually pretty useful. Instead of doing the default deal where an 'okay' click gives authentication, I set my user account to standard user and made it use the the actual administrator account for administrative privileges. This makes it sort of like the UNIX security model.

The problem is that when a program is executed as an administrator, it does more than just execute it with administrator permissions. It uses the administrator environmental variables, home directory (app data), and the administrator registry. The whole point of using a non-administrator account for daily use was to keep the administrator account non-cluttered.

Anyway, is it possible to tweak UAC so that it will use the current users settings (app data, registry, etc) when providing elevated privileges, while still prompting for a password? (meaning, make it just like sudo)

Thanks!
 
There's a wealth of info on Technet (like for Vista which for the most part, is still applicable to Win7.

Although there will still be several differences, to get UAC to behave similarly to sudo, unfortunately you would use an administrative priveledged user account. Depending on what you're trying to acomplish there might also things that you can do. For example, standard users that are also members of the 'backup operators' group have some additional priveledges (which still require a UAC elevation prompt).
 
A little bit of further information here.

How To Run As Different User When Executing Programs in Windows 7

At a Command Prompt type RunAs /? and see if there are any viable options via that.

I run as a Standard user most of the time (an old XP habit) but on my standalone machine to make things easier for me I find that I end up giving the Standard user full control of many folders that by default they should not have.
 
The use of the term "elevation" may have been a bad choice on Microsoft's part.

It somewhat implies that the current user gains elevated access rights. What it actually does is elevate a user who is in the Administrators group, but for a standard user it initiates a temporary session under another (administrative) user, elevated.

I don't think there is a simple way for a standard user to actually gain elevated rights as you might expect.
 
What it actually does is elevate a user who is in the Administrators group, but for a standard user it initiates a temporary session under another (administrative) user, elevated."

^^Now I really am confused [ponder]
 
A standard user can never actually gain admin privileges.

Instead when such a user must perform an admin action, a process can be started with "over the shoulder" elevation, i.e. an admin comes over and types in his user/pw and the process starts and runs as that admin - not the original user.

This is much like the older "runas" mode in XP.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top