PC Review


Reply
Thread Tools Rate Thread

Changing permission recursively

 
 
Zeepowlee
Guest
Posts: n/a
 
      1st May 2006
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


 
Reply With Quote
 
 
 
 
Jerold Schulman
Guest
Posts: n/a
 
      1st May 2006
On Mon, 1 May 2006 08:45:32 -0400, "Zeepowlee" <(E-Mail Removed)> wrote:

>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
>

See tip 3528 » How do I set ownership and manage permissions from the command line or in a batch?
and links in the 'Tips & Tricks' at http://www.jsifaq.com

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      1st May 2006
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" <(E-Mail Removed)> wrote in message
news:e34vt4$1r3$(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Zeepowlee
Guest
Posts: n/a
 
      1st May 2006

"Jerold Schulman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

> See tip 3528 » How do I set ownership and manage permissions from the
> command line or in a batch?
> and links in the 'Tips & Tricks' at http://www.jsifaq.com
>
> Jerold Schulman


Jerold,

I installed subinacl, but running the command
subinacl /subdirectories <FolderPath>\*.* /setowner=<DomainName\UserName>
it says:
'subinacl' is not recognized as an internal or external command

cacls is recognized instead.

thanks


 
Reply With Quote
 
Dave Patrick
Guest
Posts: n/a
 
      1st May 2006
If it's not installed in your path then use something like;

C:\FullPathToFile\subinacl ..............

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Zeepowlee" wrote:
| I installed subinacl, but running the command
| subinacl /subdirectories <FolderPath>\*.* /setowner=<DomainName\UserName>
| it says:
| 'subinacl' is not recognized as an internal or external command
|
| cacls is recognized instead.
|
| thanks
|
|


 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      1st May 2006

"Zeepowlee" <(E-Mail Removed)> wrote in message
news:e355ab$3p0$(E-Mail Removed)...
>
> "Jerold Schulman" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>
> > See tip 3528 » How do I set ownership and manage permissions from the
> > command line or in a batch?
> > and links in the 'Tips & Tricks' at http://www.jsifaq.com
> >
> > Jerold Schulman

>
> Jerold,
>
> I installed subinacl, but running the command
> subinacl /subdirectories <FolderPath>\*.* /setowner=<DomainName\UserName>
> it says:
> 'subinacl' is not recognized as an internal or external command
>
> cacls is recognized instead.
>
> thanks
>
>


Where exactly did you copy subinacl.exe to?


 
Reply With Quote
 
John John
Guest
Posts: n/a
 
      1st May 2006
Where did you put SubInACL.exe? If it's the Resource Kit folder make
sure that the folder is in the Environment PATH Variables or stick
SubInACL.exe in the System32 folder. Or run it from where it is.

John

Zeepowlee wrote:

> "Jerold Schulman" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>
>
>>See tip 3528 » How do I set ownership and manage permissions from the
>>command line or in a batch?
>>and links in the 'Tips & Tricks' at http://www.jsifaq.com
>>
>>Jerold Schulman

>
>
> Jerold,
>
> I installed subinacl, but running the command
> subinacl /subdirectories <FolderPath>\*.* /setowner=<DomainName\UserName>
> it says:
> 'subinacl' is not recognized as an internal or external command
>
> cacls is recognized instead.
>
> thanks
>
>


 
Reply With Quote
 
Zeepowlee
Guest
Posts: n/a
 
      3rd May 2006
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)" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:e34vt4$1r3$(E-Mail Removed)...
>> 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
>>
>>

>
>



 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      3rd May 2006
Let's have a look at the command you use.


"Zeepowlee" <(E-Mail Removed)> wrote in message
news:e38rvq$h6a$(E-Mail Removed)...
> 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)" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > 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" <(E-Mail Removed)> wrote in message
> > news:e34vt4$1r3$(E-Mail Removed)...
> >> 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
> >>
> >>

> >
> >

>
>



 
Reply With Quote
 
Zeepowlee
Guest
Posts: n/a
 
      3rd May 2006
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)" <(E-Mail Removed)> wrote in message
news:Oc%(E-Mail Removed)...
> Let's have a look at the command you use.
>
>
> "Zeepowlee" <(E-Mail Removed)> wrote in message
> news:e38rvq$h6a$(E-Mail Removed)...
>> 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)" <(E-Mail Removed)> wrote in message
>> news:%(E-Mail Removed)...
>> > 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" <(E-Mail Removed)> wrote in message
>> > news:e34vt4$1r3$(E-Mail Removed)...
>> >> 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
>> >>
>> >>
>> >
>> >

>>
>>

>
>



 
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
Changing Calendar Permission Mike Microsoft Outlook Calendar 2 4th May 2010 03:57 AM
changing registry permission Trups Microsoft VB .NET 1 18th Feb 2008 04:20 PM
Changing folder permissions recursively/ BlackShuck Windows Vista Security 2 12th Dec 2007 07:52 AM
Re: changing permission for UAC Richard G. Harper Windows Vista Administration 0 25th Sep 2007 10:47 AM
Changing Folder Permission Alphons Fakler Microsoft Windows 2000 Security 1 22nd Oct 2003 05:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:08 AM.