Question Locked

Locked myself out of files on my harddrive

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I just got a new laptop with Windows Vista, and I was messing around on it when I somehow locked myself out of files and a few folders. Here's what I did...

I went to the properties for a folder, and under the securities tab I somehow denied everything for group "Everyone." "Everyone" is the only group listed, and I cannot seem to figure out how to give access back to myself. I'm the only one using this computer, and it's an external harddrive if that helps.

If I open up a picture that is protected, I get a message that says "Photo Gallery can't open this picture because you do not have permission to access this file location." Similar messages come up for other file types.

2 replies

by nepenthe0

As an alternative to using the GUI to take ownership, Vista provides the [i]takeown[/i] utility.

Using this utility is simple. To take ownership of a particular file or folder, you type [b]takeown /F [/b] and press Enter at the command line.

You can use the [b]/A[/b] command line argument to give ownership to the administrator instead of the current user. For example, if you want to give ownership to the [b]C:\Temp[/b] folder to the Administrators group, you'd type [b]takeown /F C:\Temp /A[/b] at the command prompt and press Enter.

Use the [b]/R[/b] command line argument when you want to apply the new ownership to subdirectories as well as the current directory. This command also works remotely. Simply provide the system, username, and password using the [b]/S ,/U [Domain\]Username[/b], and [b]/P [/b] command line arguments.

Credit to Mark Minasi and John Mueller, [i]Mastering Windows Vista Business[/i] (Sybex Publishing, 2007), ch. 21, p. 599

Rick/Portland, OR

This discussion is closed to new replies.