Questions tagged [cacls]

17 questions
14
votes
3 answers

What are Windows ACLs?

What are Windows ACLs and why are they important?
user1413
  • 4,494
12
votes
4 answers

Bypass the cacls confirmation prompt automatically?

I'm working on a custom settings script for Windows that will automate specific settings I want on a new Windows machine or installation. I grant access to some folders using cacls in my script, but I am prompted with the Y/N prompt for each listed…
Mr. Mendelli
  • 1,468
5
votes
1 answer

How can I change ACLs recursively using cacls.exe?

I want to restrict the access for everything inside the work directory to me and the system only. I tried this with the following command: cacls.exe work /t /p 'PIXLA09\Maaartin:f' 'NT AUTHORITY\SYSTEM':f However it doesn't work at all. The…
maaartinus
  • 3,392
  • 8
  • 33
  • 42
3
votes
1 answer

Permissions on new created files (Windows 7 specific)?

Maybe a noob question, but how ALCs are determined on new created files (by running MyApp.exe)? I'd like to grant "users" full control on new files created inside C:\ProgramData\MyApp when launching myapp.exe. However this is not working: icacls…
gremo
  • 225
3
votes
1 answer

How to make rsync create constant ACLs under cygwin?

I used a cygwin command like rsync -rtl --delete --delete-excluded /cygwin/c /mydisk on Windows XP and ended up with a 94 line long completely insane ACL for /mydisk/c. None of the options rtl should preserve ACL and there's surely no option for…
maaartinus
  • 3,392
  • 8
  • 33
  • 42
2
votes
0 answers

How to grant access to a folder using cacls on Windows XP?

I have revoked a permission for a folder test using cacls as follows. cacls test /p username:n It worked properly. I tried to unlock it using following command. cacls test /p username:f Command prompt showed this message Processed dir:…
Ruchi
2
votes
3 answers

Using cacls to set permission on executables

How exactly is it possible to restrict read and execute permissions of a file, and leave everything else in tact. So you can't open the file, although you can do things like move it and delete it etc.
James
  • 53
2
votes
3 answers

how to grant access to a folder using cacls

I have revoked a permission for a folder test using cacls. cacls d:/test /D adsd14 Now I trying to reassign permission to this folder using the same command. cacls d:/test /E /G adsd14:F It says processed dir: d:/test But still, I cant access…
bunty
  • 123
1
vote
0 answers

Give user create/read, but revoke delete/overwrite

A little background: I've got a citrix server with about 20 accounts that are used in a round robin fashion by various remote users to access a published application. This application allows users to upload documents to a common directory and these…
nerraga
  • 111
1
vote
3 answers

Strip my windows NTFS disk of all ACLs

When you purchase a windows PC nowadays, you don't actually "own" the whole disk... There are so many ACLs on each folder that there are portions of it you actually can access only through a complex sequence of actions requiring skills well beyond…
0
votes
1 answer

windows xp Professional restore Security Descriptors after cacls /t /e /p

Someone changed the permissions on a bunch of machines using cacls which fixed one problem but created a bigger one. I'm looking at ways to revert this but can't seem to get it back to the way it was. I've replicated using a test machine and the…
Rhino
  • 13
0
votes
1 answer

Converting these chmod commands to cacls?

Perhaps someone could help me. I'd like to convert the following chmod commands to use on Windows 7 but my understanding is lacking. /bin/chmod -R u+w,go-w,a+r somedirectory /bin/chmod a+x anotherdirectory Thank you greatly.
0
votes
1 answer

How can i gain access control for autorun.ini file in FAT32 USB storage

I want to remove autorun.ini file from my USB storage but unable to remove and I've tried many times by following procedure: I:\> attrib autorun.ini -r -a -s -h and I always get "access denied" message. I've also tried using windows "cacls"…
maruf
  • 131
0
votes
2 answers

How is access denied on Avira file ipmgui.exe?

I can't modify anything of the ACL of the ipmgui.exe file (or any file of Avira in the same directory). It's not working at all with any cacls line tried, even under a system prompt!  I'm not sure at all it's related to ACL, as they are looking…
0
votes
1 answer

"CACLS" is not recognized as an internal or external command, operable program or batch file

I have been using CACLS batch file many times and today it is not recognized. CACLS.EXE exist in C:\Windows\System32 and I have tried writing at command prompt: CACLS * /E /T /C /G Administrators:F CACLS C:\Temp\[filename] /E /T /C /G…
1
2