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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Admins Group (Group Permissions)

Status
Not open for further replies.

iceman911

Programmer
Apr 23, 2005
4
US
User level security is a pain! But I got it working!

Used security wizard. Created a new project.mdw file. It left an unnecessary systemx.mdw, as a footprint, that I later deleted.

The wizard automatically deleted the Admin user connection to Admins group. It created me (user) as a user and connected me to the admins group (I also added a new password). It remove all the permissions from the users group as I requested. It encrypted my DB. And it created a shortcut on my desktop that links my DB and my new dbw file. Works fine. I did not use the workgroup administor.

My next goal is to reverse the process. You ask me why? I always like to be able to get back to groud zero.

Decrypted by opening exclusive using /excl on the short cut and using the encode/decode command. Added Admin user to Admins group then added run permissions to the users group (IMPORTANT).

Reopen the DB with the system.mdw file. DB opens without password.

Added permissions to the admin user. That worked. Try to add admin permissions to the admins group. (I'm not allowed to change). Is this a known problem? Where is the black magic?

 
I am doing a dotnetnuke tutorial.

I gave full access to the local ASPNET account. I gave full access t o the dotnetnuke folder and the file LogConfig.xml.resources. I also gave ASP.nET access to the C drive. I tried deleting the file so DNN could recreate it. None of these worked.


I am refereng to the DNN hungle ttorial if that helps:


I was able to get to the site but when I logged in a as a host ( as that’s what the instructions said this is the error message I get:

Server Error in '/dotnetnuke' Application.

--------------------------------------------------------------------------------

Access to the path "C:\dotnetnuke\Portals\_default\Logs\LogConfig\LogConfig.xml.resources" is denied.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access to the path "C:\dotnetnuke\Portals\_default\Logs\LogConfig\LogConfig.xml.resources" is denied.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

Source Error:


Line 879: If File.Exists(strConfigDoc) = False Then
Line 880: Dim TemplateLogConfig As String = HttpRuntime.AppDomainAppPath + "Portals\_default\Logs\LogConfig\LogConfigTemplate.xml.resources"
Line 881: File.Copy(TemplateLogConfig, strConfigDoc)
Line 882: File.SetAttributes(strConfigDoc, FileAttributes.Normal)
Line 883: End If



Source File: C:\dotnetnuke\Providers\LoggingProviders\XMLLoggingProvider\XMLLoggingProvider.vb Line: 881

Stack Trace:


[UnauthorizedAccessException: Access to the path "C:\dotnetnuke\Portals\_default\Logs\LogConfig\LogConfig.xml.resources" is denied.]
System.IO.__Error.WinIOError(Int32 errorCode, String str) +393
System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite) +345
System.IO.File.Copy(String sourceFileName, String destFileName) +7
DotNetNuke.Logging.XMLLoggingProvider.GetConfigDoc() in C:\dotnetnuke\Providers\LoggingProviders\XMLLoggingProvider\XMLLoggingProvider.vb:881
DotNetNuke.Logging.XMLLoggingProvider..ctor() in C:\dotnetnuke\Providers\LoggingProviders\XMLLoggingProvider\XMLLoggingProvider.vb:25

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.Reflection.RuntimeConstructorInfo.InternalInvoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean isBinderDefault) +0
System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +500
System.Reflection.ConstructorInfo.Invoke(Object[] parameters) +14
DotNetNuke.Logging.LoggingProvider.Instance() in C:\dotnetnuke\components\Logging\LoggingProvider.vb:83
DotNetNuke.Logging.LogController.AddLog(Object objLogInfo, String LogType, Int32 PortalID, String PortalName, Int32 UserID, String UserName, Boolean BypassBuffering) in C:\dotnetnuke\components\Logging\PortalLog.vb:466
DotNetNuke.Logging.ExceptionLogController.AddLog(BasePortalException objBasePortalException) in C:\dotnetnuke\components\Logging\ExceptionLog.vb:55
DotNetNuke.Exceptions.ProcessPageLoadException(Exception exc, String URL) in C:\dotnetnuke\components\Exceptions\Exceptions.vb:214
DotNetNuke.BasePage.Page_Error(Object Source, EventArgs e) in C:\dotnetnuke\components\BasePage.vb:41
System.Web.UI.TemplateControl.OnError(EventArgs e) +109
System.Web.UI.Page.HandleError(Exception e) +68
System.Web.UI.Page.ProcessRequestMain() +2100
System.Web.UI.Page.ProcessRequest() +218
System.Web.UI.Page.ProcessRequest(HttpContext context) +18
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +179
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top