Re: Changing permission recursively



The /subdirectories switch instructs subinacl.exe to deal
with FOLDER names. However, "Mysubdir2\*.*" denotes
FILE names! Perhaps you see now why I keep asking
for the full command you use, in spite of your reluctance
to post it.

subinacl subdirectories "E:\Documents and Settings\Mysubdir1\Mysubdir2"
/setowner=PPP\Administrators

Furthermore I consider it a bad habit to run parameters
together. I know that it works for most of the time but a
much safer way is to place at least one space between
parameters.


"Zeepowlee" <nospam@xxxxxxxxxx> wrote in message
news:e3curr$5hn$1@xxxxxxxxxxxxxxxxxxxxxxxxxxx
The ***full*** command is:

subinacl/subdirectories "E:\Documents and
Settings\Mysubdir1\Mysubdir2\*.*"/setowner=PPP\Administrators


Done: 0, Modified: 0, Failed 0, Syntax Errors 0


Thanks for help


"Pegasus (MVP)" <I.can@xxxxxxx> wrote in message
news:Ok2TLxvbGHA.3872@xxxxxxxxxxxxxxxxxxxxxxx
Once more I ask that you let us see the ***full*** command,
not just a fragment.


"Zeepowlee" <nospam@xxxxxxxxxx> wrote in message
news:e3aulu$bsn$1@xxxxxxxxxxxxxxxxxxxxxxxxxxx
By the way,
if I run

cacls "mypath..."

I get:
BUILTIN\Administrators<OI><CI>C
BUILTIN\Administrators<OI><CI>F
<Account Domain not found><OI><CI>F
NT AUTHORITY\SYSTEM:<OI><CI>F





"Zeepowlee" <nospam@xxxxxxxxxx> wrote in message
news:e3ate5$bee$1@xxxxxxxxxxxxxxxxxxxxxxxxxxx
I run the command (1 space after subdirectories and no spaces after
*.*",
right?)
and I get

Elapsed Time: 00 00:00:00
Done: 0 Modified 0 Failed 0 Syntax errors 0


No file had changed ownership...




"Pegasus (MVP)" <I.can@xxxxxxx> wrote in message
news:e7NDgOrbGHA.3824@xxxxxxxxxxxxxxxxxxxxxxx
You must surround all long file/folder names with double quotes.
If you don't then the command will get very confused about
what is a file name and what is a switch.

subinacl /subdirectories "e:\documents and
settings\mysubdir1\mysubdir2\*.*"
/setowner=PPP\Administrators

"Zeepowlee" <nospam@xxxxxxxxxx> wrote in message
news:e3a795$3bc$1@xxxxxxxxxxxxxxxxxxxxxxxxxxx
subinacl /subdirectories e:\documents and
settings\mysubdir1\mysubdir2\*.*
/setowner=PPP\Administrators

I get:

LookupAccountName : setowner e:\documents : PPP\administrators :
1337
The
security ID structure is invalid

Current object e:\documents will not be processed





"Pegasus (MVP)" <I.can@xxxxxxx> wrote in message
news:Oc%23GgwkbGHA.1204@xxxxxxxxxxxxxxxxxxxxxxx
Let's have a look at the command you use.


"Zeepowlee" <nospam@xxxxxxxxxx> wrote in message
news:e38rvq$h6a$1@xxxxxxxxxxxxxxxxxxxxxxxxxxx
Ok now I am running it from the installation folder.
I get
Error 1337, the security ID structure is invalid.

In my Path I have long folder names, e.g.: Documents and
settings,
while in the error message it appears just as "documents"
May it be the root of the error?

THX

"Pegasus (MVP)" <I.can@xxxxxxx> wrote in message
news:%231tAISSbGHA.1228@xxxxxxxxxxxxxxxxxxxxxxx
In your previous thread Jim Howes recommended that you
use subinacl.exe to seize ownership of a folder and all its
subfolders. The answer is still the same. If this does not
work for you then you should post
a) the command you use, and
b) the messages you get.

The same goes when you use the GUI, as suggested by
John John.


"Zeepowlee" <nospam@xxxxxxxxxx> wrote in message
news:e34vt4$1r3$1@xxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi all,

some days ago I asked about changing ownership and permission
of
files,
after moving an HD on a different client.
I was suggested to change the owner of the file(s) to
administrator,
then
re-open properties and edit permission for administrator.
It works fine (thanks folks) but I'd like to do this for many
folders
and
subfolders at once. It seems not working. It seems when
different
file
types
are included, the multiple selection do not work for changing
ownership.
To change permission for all files and folders on the HD it'd
become
extremely time consuming.

Can anybody suggest a better way, if exists?


Thank you






















.



Relevant Pages

  • Re: can not delete strange char file in internet temp folder
    ... del x:\*.*, error filename or dir name syntax error ... "John John" wrote: ... folder path with a drive letter then try deleting from the substitute drive. ... Explorer.exe to the command prompt, ...
    (microsoft.public.win2000.general)
  • Re: Backup Error / Stall
    ... I ran the command correctly this time and was ... after performing the scannow function to determine if any changes that were ... "John John " wrote: ... /SCANONCE Scans all protected system files once at the next boot. ...
    (microsoft.public.windowsxp.general)
  • Re: XP - nothing runs
    ... "John John " wrote: ... administrator and at the command prompt issue the following commands, ... the command session and close the already open command window. ... Do you have a Windows XP CD? ...
    (microsoft.public.windowsxp.general)
  • Re: Help! endless boot- check disk loop
    ... "John John" wrote: ... Ues the DISABLE command to disable ... Description of the Windows XP Recovery Console ... "trailing folder entrys" then reboots again. ...
    (microsoft.public.windowsxp.basics)
  • Re: Freaking Machines STILL Not Keeping Correct Time
    ... You get it the first time but it should go through the second time, that is why it says to do it twice. ... Using the NET TIME Command to Synchronize Windows XP Workstations ... "John John" wrote in message ...
    (microsoft.public.windowsxp.general)