Folder Permissions

Results 1 to 2 of 2

Thread: Folder Permissions

  1. #1
    Join Date
    Dec 1969

    Default Folder Permissions

    I&#039;m trying to set permissions for a folder using an asp page using CACLS.EXE. However, when the script executes it doesn&#039;t seem to do anything. Any ideas. Here is my script.<BR><BR>strUserName = "myuser"<BR>strProfileLocation = "\MyMachineEDrive$Profiles\" & strUserName<BR><BR>strShellCommand01 = "cmd /c echo y&#124 CACLS " & strProfileLocation & " /T /G mydomain\" & strUserName & ":F"<BR>Set objShell = Server.CreateObject("WScript.Shell")<BR>objRTC = objShell.Run (strShellCommand01 , 0, True)<BR>Set objRTC = Nothing<BR>Set objShell = Nothing

  2. #2
    Join Date
    Dec 1969

    Default RE: Folder Permissions

    if the ASP page is running under IUSR (as it will be by default) then it doesn&#039;t have the rights to change ACLs. is this the case?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts