Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista account administration

Vista - Changing File Ownership

Reply
 
Old 01-27-2007   #1 (permalink)
sarima


 
 

Changing File Ownership

Many of my user files on on a partition other than my boot partition. IIRC,
if I do a clean install these files will no longer be owned by any user
account, even if I create an account with the same name.

So, my question is, how much trouble is it to change the ownership of all of
these files (thousands) to an account under Vista? Can any administrator
account do it, or only *the* Administrator? Can I assign ownership to a
standard user account this way?

My System SpecsSystem Spec
Old 01-27-2007   #2 (permalink)
Jimmy Brush


 
 

Re: Changing File Ownership

Hello,

<snip>
> Many of my user files on on a partition other than my boot partition.
> IIRC,
> if I do a clean install these files will no longer be owned by any user
> account, even if I create an account with the same name.


This is correct - if the files were not owned by a built-in account such as
Administrators, then they will no longer have an owner that means anything
to a new OS.

> So, my question is, how much trouble is it to change the ownership of all
> of
> these files (thousands) to an account under Vista?


It is fairly simple. The easiest way (if you have Vista Business,
Enterprise, or Ultimate):

- right-click the folder that contains the files
- click properties
- click the security tab
- click advanced
- click the Owner tab
- click Edit
- Click Other users or groups
- Type the username of the user to set as the owner
- Press enter
- Check Replace owner on subcontainers and objects
- Click Yes/OK to any prompts that appear
- Click OK
- Click OK
- Click OK

Or, the harder way (you will need to do this if you are using Vista Home
Basic or Vista Home Premium):

- Click start
- Type: cmd
- Right-click cmd when it appears, and click Run As Administrator
- Change drive/directory to the drive/folder that contains your files (e.g.
f:<enter> cd files<enter>)
- Execute this command, where USERNAME is the user you wish to have
ownership:
icacls . /setowner USERNAME /T /L /Q

> Can any administrator
> account do it, or only *the* Administrator?


An administrator is an administrator, they can both do the same thing. The
only difference is that "the" administrator always runs any program that
executes will full admin privileges, whereas normal admin accounts allow you
to choose which programs will be allowed to use your admin powers.

There is no reason to use the built-in administrator account at all (except
in the case of an emergency), which is why it is disabled.

If you are having trouble doing something inside of a normal administrator
account, it is important to remember that if the program you are using did
not prompt for permission ("Windows needs your permission to continue"),
then that program will not be able to use your admin powers.

Right-clicking it and clicking Run As Administrator will give it permission
to use your admin powers. A good example of this is in my instructions on
opening the command prompt above - without running it as administrator, it
would be unable to perform the commands.

> Can I assign ownership to a
> standard user account this way?


Yes.


--
- JB
Microsoft MVP - Windows Shell/User

Windows Vista Support Faq
http://www.jimmah.com/vista/

My System SpecsSystem Spec
Old 12-07-2008   #3 (permalink)


Vista Home Premium 64bit
 
 

Re: Changing File Ownership

hi ive tried that but when i open the command prompt it automatically shows
C:\Windows\System32> as the driver or folder so i dont know how to enter the command for the folder i want help??
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Take Ownership of file Tutorials
Take Ownership of file General Discussion
Changing File Ownership Vista General
Cannot take ownership of file Vista security
changing file ownership, "powershell way", anyone? PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46