PC Review


Reply
Thread Tools Rate Thread

cacls applied to empty directory

 
 
rob merritt
Guest
Posts: n/a
 
      16th Oct 2004
hi I have a directory on a number of servers I want protected .
currently the dir is empty so using CACLS I want to set the acls via:

mkdir "\\ABS1s\e$\Shares\Office\Admin Notes\"
cacls "\\ABS1s\e$\Shares\Office\Admin Notes\" /C /P "@MIS":C <
yes.txt
cacls "\\ABS1s\e$\Shares\Office\Admin Notes\" /E /c /P "Domain
Admins":F < yes.txt
cacls "\\ABS1s\e$\Shares\Office\Admin Notes\" /E /c /P "@Elementary
Principals":C < yes.txt
cacls "\\ABS1s\e$\Shares\Office\Admin Notes\" /E /c /P "@Elementary
Vice Principals":C < yes.txt

ony I get:
The system cannot find the file specified.

Admin Notes is the directory I want protected.
 
Reply With Quote
 
 
 
 
Marty List
Guest
Posts: n/a
 
      16th Oct 2004

"rob merritt" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> hi I have a directory on a number of servers I want protected .
> currently the dir is empty so using CACLS I want to set the acls via:
>
> mkdir "\\ABS1s\e$\Shares\Office\Admin Notes\"
> cacls "\\ABS1s\e$\Shares\Office\Admin Notes\" /C /P "@MIS":C <
> yes.txt
> cacls "\\ABS1s\e$\Shares\Office\Admin Notes\" /E /c /P "Domain
> Admins":F < yes.txt
> cacls "\\ABS1s\e$\Shares\Office\Admin Notes\" /E /c /P "@Elementary
> Principals":C < yes.txt
> cacls "\\ABS1s\e$\Shares\Office\Admin Notes\" /E /c /P "@Elementary
> Vice Principals":C < yes.txt
>
> ony I get:
> The system cannot find the file specified.
>
> Admin Notes is the directory I want protected.



Some commands don't like the trailing backslash, cacls is one of them. Try
this:

cacls "\\ABS1s\e$\Shares\Office\Admin Notes" /C /P "@MIS":C <yes.txt

And if you don't want to mess with yes.txt, try this:

Echo y|cacls "\\ABS1s\e$\Shares\Office\Admin Notes" /C /P "@MIS":C



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount NTFS to A empty; Unable to Delete a empty directory amontse@gmail.com Windows XP Help 2 9th Mar 2006 01:44 AM
GPO - Not Applied (Empty) iug Microsoft Windows 2000 Group Policy 2 25th Jun 2004 09:27 PM
cacls.exe not to delete toplevel directory Robert Microsoft Windows 2000 File System 1 6th Apr 2004 01:10 AM
cacls.exe not to delete toplevel directory Robert Microsoft Windows 2000 Security 1 6th Apr 2004 01:10 AM
Create user by script then CACLS home directory =?Utf-8?B?TXIgQnJvd25zdG9uZQ==?= Microsoft Windows 2000 Active Directory 3 8th Feb 2004 10:26 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:00 PM.