View Full Version : Take Ownership of roaming profiles dirctory


ml.net
03-24-2004, 05:41 PM
Hello - I'm in an odd situation that I have to believe others have run into.
I have users that are logging into a Terminal Server which then creates a
roaming profiles in the form of \\server\share\%username%. When I try to
browse the user directory I get an access denied error because only the user
has permissions and ownership of the folder. I know there group policies
that can revert this but it's not working as it should.

So I want to script an update to the ownership of the folder using subinacl.
Below is my syntax.

C:\>subinacl /noverbose /subdirectories \\server\share\folder
/setowner=domian\user

The command completes but nothing happens! I don't get any error nor does it
say it processed or modified anything. Therefore, no changes occur at all.
I'm logged in as a Domain Admin and I can reassign the ownership manually by
using the GUI.

Any ideas? Xcacls didn't seem to work either but I've heard subinacl does...

Thanks
ML

Paul R. Sadowski
03-24-2004, 09:05 PM
"ml.net" <dont@trustbill.com> wrote in message
news:u3$yXdcEEHA.1600@tk2msftngp13.phx.gbl...
> C:\>subinacl /noverbose /subdirectories \\server\share\folder
> /setowner=domian\user
>
> The command completes but nothing happens! I don't get any error nor does
> it
> say it processed or modified anything. Therefore, no changes occur at all.
> I'm logged in as a Domain Admin and I can reassign the ownership manually
> by
> using the GUI.

I'd like to see an answer to this too. I tried it once with the exact same
result and no matter what I did nothing changed.

Paul R. Sadowski
03-24-2004, 09:05 PM
"ml.net" <dont@trustbill.com> wrote in message
news:u3$yXdcEEHA.1600@tk2msftngp13.phx.gbl...
> C:\>subinacl /noverbose /subdirectories \\server\share\folder
> /setowner=domian\user
>
> The command completes but nothing happens! I don't get any error nor does
> it
> say it processed or modified anything. Therefore, no changes occur at all.
> I'm logged in as a Domain Admin and I can reassign the ownership manually
> by
> using the GUI.

I'd like to see an answer to this too. I tried it once with the exact same
result and no matter what I did nothing changed.

Matt Hickman
03-25-2004, 12:11 AM
"ml.net" <dont@trustbill.com> wrote in message news:<u3$yXdcEEHA.1600@tk2msftngp13.phx.gbl>...
> So I want to script an update to the ownership of the folder using subinacl.
> Below is my syntax.
>
> C:\>subinacl /noverbose /subdirectories \\server\share\folder
> /setowner=domian\user
>

try:

C:\>subinacl /noverbose /subdirectories \\server\share\folder\*
/setowner=domian\user

--
Matt Hickman

Matt Hickman
03-25-2004, 12:11 AM
"ml.net" <dont@trustbill.com> wrote in message news:<u3$yXdcEEHA.1600@tk2msftngp13.phx.gbl>...
> So I want to script an update to the ownership of the folder using subinacl.
> Below is my syntax.
>
> C:\>subinacl /noverbose /subdirectories \\server\share\folder
> /setowner=domian\user
>

try:

C:\>subinacl /noverbose /subdirectories \\server\share\folder\*
/setowner=domian\user

--
Matt Hickman

Torgeir Bakken \(MVP\)
03-25-2004, 03:45 AM
ml.net wrote:

> (snip)
> C:\>subinacl /noverbose /subdirectories \\server\share\folder
> /setowner=domian\user
>
> The command completes but nothing happens! I don't get any error nor does it
> say it processed or modified anything. Therefore, no changes occur at all.
> I'm logged in as a Domain Admin and I can reassign the ownership manually by
> using the GUI.
>
> Any ideas? Xcacls didn't seem to work either but I've heard subinacl does...
Hi

A new, bug-fixed version of SubInACL.exe is available for download here
(Win2k/WinXP/Win2k3), but I have no idea if that solves your problem:

http://www.microsoft.com/downloads/details.aspx?FamilyID=e8ba3e56-d8fe-4a91-93cf-ed6985e3927b


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/community/scriptcenter/default.mspx

Torgeir Bakken \(MVP\)
03-25-2004, 03:45 AM
ml.net wrote:

> (snip)
> C:\>subinacl /noverbose /subdirectories \\server\share\folder
> /setowner=domian\user
>
> The command completes but nothing happens! I don't get any error nor does it
> say it processed or modified anything. Therefore, no changes occur at all.
> I'm logged in as a Domain Admin and I can reassign the ownership manually by
> using the GUI.
>
> Any ideas? Xcacls didn't seem to work either but I've heard subinacl does...
Hi

A new, bug-fixed version of SubInACL.exe is available for download here
(Win2k/WinXP/Win2k3), but I have no idea if that solves your problem:

http://www.microsoft.com/downloads/details.aspx?FamilyID=e8ba3e56-d8fe-4a91-93cf-ed6985e3927b


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/community/scriptcenter/default.mspx