欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  网络运营

LoadUserProfile 调用因下列错误而宣告失败: 拒绝访问的常见解决方法

程序员文章站 2022-11-27 20:09:52
看到loaduserprofile这个,应当与用户有关。又是需要什么用户的权限呢? 就凭这些信息,也想不出是什么原因导致的,只能到网上找。 找了一下,原来是c:\docum...
看到loaduserprofile这个,应当与用户有关。又是需要什么用户的权限呢?
就凭这些信息,也想不出是什么原因导致的,只能到网上找。
找了一下,原来是c:\documents and settings目录缺少 netword service权限,说实话,要不是找,我想死了也想不出是这个权限问题。
我感觉系统出现错误时,应当把解决方法都显示出来才好呢,呵呵。。。

c:\documents and settings加上netword service权限后,问题解决。


mysql以低权限运行出现问题的解决方法
mysql 降权运行了一段时间 突然启动不了了.查看日志 事件类型: 错误事件来源: service control manager 事件种类: 无事件 id: 7005 日期: 2010-3-7 事件: 5:29:13 用户: n/a 计算机: vps3210-aaa9460 描述: loaduserprofile 调用因下列错误而宣告失败: 拒绝访问。 有关更多信息,请参阅在 http://go.microsoft.com/fwlink/events.asp 的帮助和支持中心。 由于是把mysql运行帐户归类到guests组下面的.做权限的时候在c:\windows 设置guests 拒绝 列出文件夹/读取数据 取消了 正常启动了


事件类型: 错误
事件来源: service control manager
事件种类: 无
事件 id: 7005
日期: 2008-4-14
事件: 10:42:14
用户: n/a
计算机: fff-g7ouq7494h1
描述:
loaduserprofile 调用因下列错误而宣告失败:
拒绝访问。
有关更多信息,请参阅在 http://go.microsoft.com/fwlink/events.asp 的帮助和支持中心。

------------------------------------------------------------------------------------------------------------------------------
我的机器是权限问题,应该是在"c:\documents and settings"和"c:\windows"下.具体是那个就不知道了.
给个苯的方法,不过很使用哦...
用安全配置与分析:恢复以上两个文件的夹的默认权限,在设置..
可以先尝试一个一个的恢复 ,就可以找到是哪个了..懒得弄了.
----------以下c:\documents and settings的默认权限
; copyright (c) microsoft corporation. all rights reserved.

; security configuration template for security configuration manager
[version]
signature="$chicago$"
driverver=10/01/2002,5.2.3790.0
[profile description]
%sceprofiledescription%
[file security]
"c:\documents and settings",0,"d:ar(a;oici;ga;;;ba)(a;oici;ga;;;sy)(a;oiciio;ga;;;co)(a;cioi;grgx;;;bu)(a;ci;0x00000004;;;bu)(a;ciio;0x00000002;;;bu)(a;;grgx;;;wd)"
[strings]
sceprofiledescription = "将默认的根目录权限运用于 os 磁盘分区并将此权限传播到从根目录继承的子对象。传播时间由未受保护的子对象的数目决定。请参见联机帮助以获取进一步的信息。"
以上-------------
以下c:\windows--------
; copyright (c) microsoft corporation. all rights reserved.

; security configuration template for security configuration manager
[version]
signature="$chicago$"
driverver=10/01/2002,5.2.3790.0
[profile description]
%sceprofiledescription%
[file security]
"c:\windows",0,"d:ar(a;oici;ga;;;ba)(a;oici;ga;;;sy)(a;oiciio;ga;;;co)(a;cioi;grgx;;;bu)(a;ci;0x00000004;;;bu)(a;ciio;0x00000002;;;bu)(a;;grgx;;;wd)"
[strings]
sceprofiledescription = "将默认的根目录权限运用于 os 磁盘分区并将此权限传播到从根目录继承的子对象。传播时间由未受保护的子对象的数目决定。请参见联机帮助以获取进一步的信息。"
以上------------
不会用的可以看下

一样的道理
两个是可以写到一个里面去的,时间有限,不琢磨了..自己去弄吧...