/build/static/layout/Breadcrumb_cap_w.png

I need to make some folders and files to have full access, how do I change them from read only

Software.  I need to make it full control


0 Comments   [ + ] Show comments

Answers (5)

Posted by: SMal.tmcc 12 years ago
Red Belt
2

If you are trying to script the change, use the attrib command

http://support.microsoft.com/kb/326549

http://technet.microsoft.com/en-us/library/bb490868.aspx

 


Comments:
  • attrib -r -s "c:\path to sofware\*.*" /S /D - SMal.tmcc 12 years ago
Posted by: Ben M 12 years ago
9th Degree Black Belt
1

Right-click on folder, click on properties, go to the security tab, give the desired account full control.

Posted by: anshul 12 years ago
Orange Belt
0

if you are creating folder through a msi you can give permission directly there

or else you can write vbscript

 

On Error Resume Next

Dim wshShell,strProgram, strWin,strParam
 
Set wshShell = CreateObject("WScript.Shell")
strProgram = wshShell.ExpandEnvironmentStrings("%systemdrive%")
strProgrammes = wshShell.ExpandEnvironmentStrings("%ProgramFiles%")

StrProgram = chr(34) & StrProgram & "\Siemens" & chr(34)

strParam = " /t /e /g everyone:F"

strParam1 = " /t /e /g users:F"
StrProgram1 = "cacls " & strProgrammes & strParam

StrProgram2 = "cacls " & strProgrammes & strParam1


wshShell.run StrProgram1
wshShell.run StrProgram2

 

set wshShell = Nothing

Posted by: chucksteel 12 years ago
Red Belt
0

I use either the cacls command or the icacls command.

 

Posted by: oreillyr 12 years ago
Fifth Degree Brown Belt
0

Use SetACL through custom Action Table with

If you are sure you need to give them full permissions (i.e. allow the user to delete you can change the below change value to full.

SetACL.exe -on "C:\my dir" -ot file -actn ace
           -ace "n:domain1\user1;p:change"

http://setacl.sourceforge.net

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ