+ Post New Thread
Results 1 to 6 of 6
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 ...
  1. #1

    Join Date
    Sep 2009
    Posts
    35
    Thank Post
    20
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    CACLS Command - Access Denied

    Hi,

    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

    Any Ideas?!

  2. #2

    Join Date
    Sep 2009
    Posts
    35
    Thank Post
    20
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Hi,

    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!

  3. #3

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,154
    Thank Post
    114
    Thanked 527 Times in 450 Posts
    Blog Entries
    2
    Rep Power
    123
    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.

  4. #4

    Join Date
    Nov 2009
    Location
    Lymington
    Posts
    8
    Thank Post
    8
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Hi,

    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,
    Steve.
    Last edited by SteveCIS; 24th November 2009 at 04:22 PM.

  5. #5

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,154
    Thank Post
    114
    Thanked 527 Times in 450 Posts
    Blog Entries
    2
    Rep Power
    123
    Quote Originally Posted by SteveCIS View Post
    Hi,

    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.
    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 :-)

  6. #6
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,995
    Thank Post
    120
    Thanked 280 Times in 258 Posts
    Rep Power
    106
    Quote Originally Posted by srochford View Post
    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 :-)
    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

SHARE:
+ Post New Thread

Similar Threads

  1. Photostory Access denied error.
    By ICT_GUY in forum Windows
    Replies: 20
    Last Post: 10th February 2010, 11:03 AM
  2. Access Denied - Backup Exec 12
    By Geek_of_HeathMount in forum Windows Server 2008
    Replies: 0
    Last Post: 21st October 2009, 01:14 PM
  3. RIS Access denied file in use
    By kevin_lane in forum Windows
    Replies: 0
    Last Post: 7th January 2009, 09:17 AM
  4. Access Denied from Admin Network
    By MrDylan in forum ICT KS3 SATS Tests
    Replies: 9
    Last Post: 25th April 2006, 12:09 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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