windows account
You can control the privileges of individual accounts or groups using
Local Security Policy, which is in Control Panel under Administrative
Tools (XP), or Start, Run "secpol.msc". If you're working with a domain
(Active Directory) look also at the Group Policy Editor (gpedit.msc).
Have a look at the "Deny Logon Locally" option. To find this setting,
open Local Security Policy, Security Settings, Local Policies, User
Rights Assignment. See:
http://technet.microsoft.com/en-us/library/bb457125.aspx
Be careful, or you can lock yourself (or even everyone) out of the machine!
More generally...
I'm not very clear about what you are trying to do (what do you mean by
orchestration?). If you are building an application which manages
access to Windows (so that users log on through your application and
cannot do anything else) you have a lot of security problems as
experienced Windows users will find ways to get around it.
Otherwise, I assume users will log onto Windows first and then run your
application. In that case it will be simpler to assign user accounts to
groups, and then manage access to your application by setting file
permissions for those groups. Within your application code you could
also test to see if the current user is a member of a particular group.
So, I would look into setting file permissions for users by groups
first, and then investigate Local Security Policy and Group Policy if
you need further controls.
Phil, London
|