all groups > visual studio .net debugging > august 2007 >
You're in the

visual studio .net debugging

group:

Sensible NT Privileges for Developers



Sensible NT Privileges for Developers Peter Nimmo
8/2/2007 2:11:44 AM
visual studio .net debugging: Hi,

This morning I found that I could no longer run the SysInternals FileMon
Tool. The following error was issued "Your account does not have the Debug
Programs privilege, which is required to run Filemon".

Now I have Aaron Margosis's PrivBar installed and noticed the
Administrators has changed to "Power Users". This is part of our IT
Services latest attempt to lock things down.

I still have the ability to debug programs despite the message issued by
FileMon, I did find however that when I wanted to change the Just-In-Time
debugger to Visual Studio 2005 instead of 2003 that I did not have the
required privilege. They have temporarily reinstated my privilege for the
purpose.

What I want to know is can someone list by name the privileges (and their
purpose) that a developer might have need of.

I am not a web developer (actually a C++ programmer), but I would be
interested whether more or less privileges are appropriate, for web
developers.



Re: Sensible NT Privileges for Developers Peter Nimmo
8/2/2007 2:19:06 AM
I am including Jeffrey's reply to my previous message in an incorrect
newsgroup.

jetan@online.microsoft.com ("Jeffrey Tan[MSFT]") wrote in
news:B4KjDMO1HHA.5836@TK2MSFTNGHUB02.phx.gbl:

[quoted text, click to view]
What other privileges other than SeDebugPrivilege are useful/required
that a programmer could sensibly make a case for with their IT Services
Re: Sensible NT Privileges for Developers jetan NO[at]SPAM online.microsoft.com (
8/3/2007 5:07:44 AM
Hi Peter,

I am not sure if my reply makes sense to you. Can you show me your current
concern to this issue?

Regarding the JIT setting error, do you get the error listed in the link
below?
http://msdn2.microsoft.com/en-us/library/ssc8234s(VS.80).aspx

Yes, this is by design. If you are using RegMon or Process Monitor to
monitor the VS2005 registry access during changing the JIT setting, you
will see that the registry keys VS2005 modifying only grant write
permissions to Administrators and Local System accounts. That's why Power
Users can not modify this JIT setting in VS2005 IDE.

Anyway, if I have misunderstood your concern, please feel free to tell me,
thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Re: Sensible NT Privileges for Developers Peter Nimmo
8/3/2007 9:13:55 AM
jetan@online.microsoft.com ("Jeffrey Tan[MSFT]") wrote in
news:Jn3uAxY1HHA.5204@TK2MSFTNGHUB02.phx.gbl:

[quoted text, click to view]
Yes, I think it is the very last error listed, but I cannot check anymore
as later on in the afternoon a colleague who I got to install PrivBar who
had also got "Power Users" displayed told me later on when he rebooted and
it was back to "Administrator". The same thing happened to me when I
rebooted, so I cannot get the exact error.

Unfortunately Process Monitor and I assume RegMon cannot actually be run
under "Power Users" as I tried Process Monitor after Filemon had failed.


Peter

P.S Does anyone know how to temporarily run programs as "Power Users" as
DropMyRights does not have this as an option. I do have PsTools installed
Re: Sensible NT Privileges for Developers jetan NO[at]SPAM online.microsoft.com (
8/7/2007 3:20:00 AM
Hi Peter,

Thank you for the feedback.

Yes, Process Monitor and RegMon can only run under Administrators account.

To check this, you may first login as Administrators account and running
VS2005 under Power Users account and using ProcMon/RegMon to monitor VS2005
registry access.

Sysinternals Psexec.exe and Process Explorer have the ability to run an
application under normal User account:
http://blogs.technet.com/markrussinovich/archive/2006/03/02/running-as-limit
ed-user-the-easy-way.aspx

However, there is no build-in function to run it under Power Users account.
You may create a new account in the Power Users group and right click the
VS2005 devenv.exe and select "Run as..." to input this Power User account
name/password. This allows you to run devenv.exe under Power Users group as
sandbox security testing.

By the way, Mark wrote an interesting blog discussing the power of Power
Users group:
"The Power in Power Users"
http://blogs.technet.com/markrussinovich/archive/2006/05/01/the-power-in-pow
er-users.aspx

Hope this helps.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
AddThis Social Bookmark Button