Changing File Ownership

Posted: 01-27-2007, 04:17 PM
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?
Reply With Quote

Responses to "Changing File Ownership"

Jimmy Brush
Guest
Posts: n/a
 
Re: Changing File Ownership
Posted: 01-28-2007, 12:28 AM
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/

Reply With Quote
rwsjyiy
Guest
Posts: n/a
 
Re: Changing File Ownership
Posted: 12-07-2008, 07:40 PM

hi ive tried that but when i open the command prompt it automaticall
shows
C:\Windows\System32> as the driver or folder so i dont know how t
enter the command for the folder i want help?

--
rwsjyiy
Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may 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 On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
File ownership for legacy installer programs Roof Fiddler Windows Vista Security 1 09-06-2006 02:07 AM
file/folder security/ownership Piotr Wozniacki Windows Vista Performance & Maintenance 3 06-26-2006 01:03 AM
changing file types jarsimpson Windows XP Music 2 11-01-2003 02:23 AM
Changing VBScript File to JPEG Images file Harkirat Singh Windows XP Photos 4 08-19-2003 03:47 AM
Changing my file name GWM Windows XP New Users 1 08-13-2003 09:19 PM