[英]Windows Service running with Local System rights, wants to create child processes from windows service which will running with Local User rights
I am working on windows service application where currently it is running on administrator privileges.我正在开发 Windows 服务应用程序,目前它以管理员权限运行。 For that I need to set administrator info in service log on settings.为此,我需要在服务登录设置中设置管理员信息。 Above windows service is creating child processes with local user privileges.以上 Windows 服务正在创建具有本地用户权限的子进程。 This is working fine.这工作正常。
Now I want to change windows service application to run with "Local System" privileges instead of administrator.现在我想更改 Windows 服务应用程序以使用“本地系统”权限而不是管理员权限运行。 But if I change the log on setting to "Local System" then, Child processes are not starting and throws exception "access denied".但是,如果我将登录设置更改为“本地系统”,则子进程不会启动并引发异常“访问被拒绝”。
I think that "local system" account has all permission to do anything.我认为“本地系统”帐户拥有做任何事情的所有权限。 It is even stronger than administrator account.它甚至比管理员帐户更强大。 Then why it cannot start child processes?那为什么不能启动子进程呢?
Please guide me if my perception is wrong如果我的看法是错误的,请指导我
Local System certainly DOES NOT have "all permission to do anything".本地系统当然没有“做任何事情的所有权限”。 That would mean that if someone managed to get INTO that process.. they could really run amok on the system.这意味着,如果有人设法进入该过程......他们真的可以在系统上运行。
Group Policy Editor will show you EXACTLY who can do what so you don't need to guess your way through.组策略编辑器将准确地向您显示谁可以做什么,因此您无需猜测通过的方式。
Computer Configuration -> Windows Settings -> Security Settings -> Local Policies -> User Rights Assignment
导航到Computer Configuration -> Windows Settings -> Security Settings -> Local Policies -> User Rights Assignment
Obtain an impersonation token for another user in the same session.
在右侧,查找为Obtain an impersonation token for another user in the same session.
I am not 100% sure that this is the setting you need (I haven't tried it) but I THINK it is.我不是 100% 确定这是您需要的设置(我还没有尝试过),但我认为是。 Even if it isn't, browse around this section of group policy to see who can do what.即使不是,也请浏览组策略的这一部分,看看谁可以做什么。 Clearly the setting you want won't have "Local System" on the list ;)显然,您想要的设置不会在列表中包含“本地系统”;)
I hope this helps.我希望这有帮助。 :) GOOD LUCK! :) 祝你好运!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.