![]() | Register | FAQ | Members | Social Groups | User Map | Calendar | Search | Today's Posts | Mark Forums Read |
| Windows Server 2000/2003 Post your questions relating to the joys of Windows Server 2000/2003 here. |
| ||
| | | LinkBack | Thread Tools | Search Thread |
| Sponsored Links |
| | #1 |
![]() Join Date: Sep 2009
Posts: 20
Thanks: 15
Thanked 0 Times in 0 Posts
Rep Power: 0 | 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 |
![]() Join Date: Nov 2007 Location: South Wales
Posts: 1,000
Thanks: 25
Thanked 139 Times in 121 Posts
Blog Entries: 5 Rep Power: 37 | Looks like you need to take ownership of the files. I'm at home on Linux, so I can't try anything, but I think you should take a look at ICACLS with the /setowner option. ICACLS is like CACLS on steroids. Icacls |
| |
| Thanks to jinnantonnix from: | rjones (24-11-2009)
|
| | #3 |
![]() Join Date: Sep 2009
Posts: 20
Thanks: 15
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! |
| |
| | #4 |
![]() Join Date: Aug 2005 Location: London
Posts: 2,259
Thanks: 46
Thanked 315 Times in 278 Posts
Blog Entries: 1 Rep Power: 72 | 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. |
| |
| | #5 |
![]() Join Date: Nov 2009 Location: Lymington
Posts: 5
Thanks: 3
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; 24-11-2009 at 05:22 PM.. |
| |
| | #6 |
![]() Join Date: Aug 2005 Location: London
Posts: 2,259
Thanks: 46
Thanked 315 Times in 278 Posts
Blog Entries: 1 Rep Power: 72 | 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 :-) |
| |
| | #7 | |
![]() Join Date: Jun 2005 Location: East Lancs
Posts: 4,415
Thanks: 21
Thanked 101 Times in 92 Posts
Rep Power: 35 | Quote:
| |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Photostory Access denied error. | ICT_GUY | Windows | 19 | Today 02:37 PM |
| Access Denied - Backup Exec 12 | Geek_of_HeathMount | Windows Server 2008 | 0 | 21-10-2009 01:14 PM |
| RIS Access denied file in use | kevin_lane | Windows | 0 | 07-01-2009 10:17 AM |
| Access Denied from Admin Network | MrDylan | ICT KS3 SATS Tests | 9 | 25-04-2006 12:09 PM |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search Thread |
| |









