Windows Server 2000/2003 Thread, CACLS Command - Access Denied in Technical; Hi,
I am trying to use the CACLS.exe command to modify ACL's in my user directory. When I run the ...
23rd November 2009, 07:45 PM #1
- Rep Power
CACLS Command - Access Denied
I am trying to use the CACLS.exe command to modify ACL's in my user directory. When I run the command it lists the directories, but, comes up after with access denied.
Heres my script...
cacls "D:\Userdata" /t /e /g "Administrators":F
obviously replacing "d:\userdata" with the user data directory
IDG Tech News
24th November 2009, 07:36 AM #2
- Rep Power
Thanks for your reply. I was hoping to change the ACL's without having to take ownership.
Going to try and add this script to a logon script... hoping that as the user has full access rights, that they should be able to change permissions.
If not will give your suggestion a go.
Thank you once again!
24th November 2009, 09:03 AM #3
If you're expecting the user running the script to be owner then it will do no harm to forcibly set the owner - if they're already owner, it makes no change.
If they're not owner then you make them owner and allow the permissions change.
24th November 2009, 02:37 PM #4
- Rep Power
I don't think you need the speech marks around Administrators.
Below is a line from a script which works and I have deployed using a GPO.
cacls "c:\Program Files\Sherston\Money Mice\saves" /e /g everyone:c
Only the path is in speech marks.
Hope that helps,
Last edited by SteveCIS; 24th November 2009 at 05:22 PM.
24th November 2009, 05:46 PM #5
You don't need them but it doesn't matter. If you wanted to do (say) domain users then you would need the quotes - I'd guess if you get into the habit of always using them then you won't miss them off when they are needed :-)
Originally Posted by SteveCIS
24th November 2009, 06:40 PM #6
or if your like me you never use spaces when your naming stuff if you can help it. This includes paths group names etc. Bloody spaces are more trouble than they are worth
Originally Posted by srochford
By ICT_GUY in forum Windows
Last Post: 10th February 2010, 12:03 PM
By Geek_of_HeathMount in forum Windows Server 2008
Last Post: 21st October 2009, 02:14 PM
By kevin_lane in forum Windows
Last Post: 7th January 2009, 10:17 AM
By MrDylan in forum ICT KS3 SATS Tests
Last Post: 25th April 2006, 01:09 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)