Internet Windows Android

Windows cannot find the target. Folder owner assignment in Windows No access to target folder what to do

Surely many Windows 7 users have faced the problem that sometimes, when performing some actions with files and folders, the system not only asks for confirmation at the level of administrator rights, but also displays a message that there is no access to the target Windows 7 folder. to correct this situation, now it will be considered. But first, a little theory.

Windows 7 target folder cannot be accessed. Why?

The thing is that the developers of the seventh version of the system, as well as all subsequent modifications, tried to protect it from accidental interference by inexperienced users by creating for this a super-administrator account, on whose behalf all permissions for conducting critical operations for the system are executed.

That is why sometimes a message may appear stating that the user does not have access to the target folder of Windows 7 when copying, moving, deleting or trying to change some important system components. Many such constant restrictions, frankly, annoy in earnest. However, they can be bypassed, and quite simply. But more on that later.

Problems copying or moving files

Usually, if the user's actions are not related to system components, but, for example, with installing programs, copying and moving some objects, usually a confirmation request is simply issued.

You just need to agree and the process will be completed without problems. The situation looks much worse when attempts are made to access or perform some actions with system files and folders. This is where a notification appears that the user does not have access to the target folder of Windows 7. In the simplest case, this is an attempt to copy an object to or from the system partition. To remedy the situation, it is logical to assume two solutions: disable the "account" of the superadmin and grant yourself absolutely all access rights or change system components.

Windows 7 target folder cannot be accessed: what to do?

For the first case, the technique looks quite simple, but first you still have to use administrator rights.


They are needed to start the command console, which is called through cmd in the Run menu. Here you need to register a single line: net user Administrator / active: yes (if the action is performed in the English version of Windows, instead of the Russian word, you should use its corresponding analogue - Administrator), and then press the Enter key.

The second technique will take a little longer, but it gives a complete guarantee that the message that the user, whether he is at least three times an administrator, does not have access to the target folder of Windows 7, will not appear again. True, this applies exclusively to single selected objects with which it is supposed to perform some action.

Here you need to use the context menu, called by right-clicking on a directory or file, in which you first select the property line, and then use the security tab, where you need to select a group or user for which you are supposed to set extended privileges. Below there is a button for additional settings, after clicking on which a new window appears.


In it, you need to use the permissions tab (it is the first), in the type column look at all the lines in which the ban is set, and then click the button for changing permissions. In a new window, find a similar line and press the button again, as in the previous case. After that, we simply change the type of permission, setting the checkbox opposite the full access line.

If you return to the first menu, you will be able to see that the checkboxes are automatically put in front of all types of operations in the permission column.

Now, when working with the selected object, the message that the user does not have access to the target Windows 7 folder will no longer appear. But keep in mind that this only applies to the selected object. If rights are required for another directory, the above operations will have to be performed again. By the way, this method also works in case of denial of access to removable devices, only in this case you need to use the properties menu of the device itself.

Access problems on local networks

But that's not all. Problems can arise with local computers. Sometimes the system also reports that the user (or a group of users) does not have access to the target folder; it can simply have such settings when some restrictions are set not only on shared access to directories on network terminals, but also on their detection on the network.


First, you need to check the additional network settings and set the enable options there for all parameters, except for password access. Thus, the visibility of computers on the network and everything that is on them is established.


Next, you should select a specific folder and just open it to public access through the corresponding line in the right-click menu. In addition, in the settings, you can specify a group of users or specifically selected users for which these parameters will be applied.

Instead of a total

As you can see, getting rid of a constantly pop-up message in different situations can be quite simple. Which method should you use? It all depends on the specific case. However, the first two techniques for home terminal users work flawlessly. For enterprise networks, you may need to contact your system administrator to apply some of the settings. In particular, this concerns the setting of network parameters. But the user can enable general access to a separate directory himself (for this, the administrator's permission is not required).

If in Windows 8 or Windows 8.1 you try to open, move or edit any system file, you will most likely get an error indicating that you do not have access rights. Moreover, this error occurs even if you are working with administrator rights. And why do you actually need to intervene in the system and change something there? There can be many reasons for this. Let's say you need to manually edit a log or image, or replace a file for some bold experiment. So, you cannot do this, even if you have administrator rights.


The reason is that in Windows 8 there are rights of an even higher access level, so to speak, root rights. They belong to the system itself. To get them, you need to change a few simple settings. There are two options - changing access rights manually and using a special utility TakeOwnershipEx... First, consider the first method. Let's say you want to get full permissions on the system file twinui.dll. Right-click on it and select Properties from the context menu.


In the properties window, switch to the "Security" tab and click "Advanced".

This will open the Advanced Security Settings window.


At the top of the window, you can see the file name and path, as well as the name of its true owner. By default it is TrustedInstaller, for some types of files it can be SYSTEM... This is exactly what you need to change. Click "Change", in the window that opens, enter your username and by clicking the "Check names" button, make sure the specified name is correct. If specified correctly, the computer name will be appended to it. Click OK and save the editing result.


Now we return to the properties window of twinui.dll, click the "Change" button,

in the list, select the username that we assigned instead TrustedInstaller, set the checkboxes in the checkboxes and save the result.

Congratulations, you are now the rightful owner of this property. In much the same way, you can set permissions on directories.


Everything that we have done manually up to this point can be done using the utility TakeOwnershipEx... This very simple and easy-to-use application performs all the above operations, only much faster. In the utility window, you need to click the "Get access rights" button and specify the path to the folder or file that you want to "unblock".


The utility remembers all changes, so it will not be difficult to restore access rights, especially since for this in TakeOwnershipEx there is a corresponding option.


By the way, during installation, the program is built into Explorer, which makes working with it even more convenient and quick.

Compared to the first method, the use of the utility has certain limitations. So, you will not be able to set the rights to directories recursively, that is, when setting the rights to a folder, subfolders and the files they contain not processed ... And in conclusion, I would like to draw your attention to the following. It is not recommended to change access rights to system files and directories unnecessarily, as this weakens Windows protection and makes it vulnerable to malware attacks ... If possible, after editing one or another system object, the access rights to it should be returned to the default values.

Previous / Next

When opening, deleting or otherwise manipulating files and folders, you may encounter a file access error. I will talk about how to deal with this and why it happens.

1. How to get full access to files and folders

First, an instruction on how to get full access to folders and files. In the next chapter, there will be an explanation for the curious.

Open the folder where the problematic file or folder is located. To get full access to their content, you need to configure access to files:

1. Right-click on a locked file (or folder) without access - Properties - select the tab Security:

2. Push the button Additionally - select the tab Owner:

3. Push the button Change and select your username (in my case it is Dima, you will have something else), also put a daw on Replace owner of subcontainers and objects:

4. If a window appears with the text “You do not have permission to read the contents of the folder. Do you want to replace the permissions for this folder so that you have full access rights? " Yes:

5. After changing the owner of the folder, a window will appear with the text “You have just become the owner of this object. You need to close and reopen the properties window for this object to see or change the permissions. " Push OK, then press again OK(in the window Additional security options).

6. In the window PropertiesSecurity press again Additionally, only now we are looking at the first tab of the window that opens - Permissions. Gotta push a button Change permissions:

7. Click the button Add:

(If you are working with properties folders, not a file, check the box next to Replace all child object permissions with inherited permissions from this object.)

8. In the "Select: users or groups" window that opens, you will need to enter the name of your user (you can see it in the "Start" menu - the name will be the very top line), click Check names, then OK:

If you need a folder (or file) to open without restrictions by absolutely all users, i.e. not only yours, then press again Add and enter the name " Everything"Without quotes (" All "in an English version of Windows), then click Check names and OK.

9. In the tab Permissions in turn, double-click on the lines with usernames and check the box "Full access":

This will automatically check the boxes below.

10. Then press OK, in the next window respond to the warning Yes, again OK to close all windows.

Ready! Full access to files and folders received! You can safely open them, change and perform other actions with them.

Output: you need to take two steps: become the "owner" of the file or folder (item 3), then assign yourself access rights (item 6). Many instructions on how to get full access to files and folders mention only the first step, forgetting about the second. This is not entirely correct, because the security settings of the file / folder may be different, you need to bring them back to normal, and not just become the "owner".

2. Why do we need permissions to files and folders

The mechanism of delimiting access to files and folders is necessary for many reasons. For example:

1. Restriction of access to information by different users.

If several (more than one) users work on the same computer or in a shared network, it is logical to restrict access to information - some users have access to all information (most often they are administrators), others - only their own files and folders (ordinary users).

For example, at home, you can restrict the rights of one user in such a way as to protect important files and folders from deletion (so that the child cannot unknowingly delete important documents), while from another (parental profile) you can do whatever you want.

In the first chapter, I showed how allow access to certain users. The same can be done limit access - the steps are the same, only in paragraph 9 it is necessary to put other checkboxes.

2. Security of the operating system.

In Windows XP, everything is arranged quite primitively - users with administrator rights can change (and delete) any folders and files on the hard disk, including system ones, i.e. owned by Windows. In fact, any program running in the admin user profile could do with the contents of the hard drive anything... For example, delete the boot.ini file, which will cause Windows to stop loading.

Under the rights of a limited user, where, thanks to the security settings, it was impossible to delete important system files, few people sat, preferring an administrator account. Thus, an account with administrator rights in Windows XP creates the most favorable environment for viruses.

In Windows Vista, in Windows 7 and Windows 8, "User Account Control" (UAC for short) works: when working in an administrator account, programs launched by the user work with limited rights. That is, delete or change the system files of the program can not... Programs are able to gain more complete access by requesting it from the user using the UAC window, which I already mentioned:

If the file permissions are configured correctly and UAC is enabled, viruses running in the Vista / 7/8 administrator account cannot seriously harm the system without the permission of the person sitting at the computer.

UAC useless in cases:

1. If a user is sitting at the computer, thoughtlessly pressing the "Yes" and "OK" buttons

2. If you run programs "as administrator" (right-click on the program shortcut - Run as administrator).

3. UAC is disabled.

4. All users have full access to system files and folders on the hard disk.

Programs running in a Windows Vista / 7/8 restricted user account (of the "Basic access" type) cannot bring up the UAC window and work with administrator rights, which is quite logical.

I repeat once again: when there is no way to elevate your rights to administrator rights, you cannot harm the operating system files protected by restricting access rights.

3. Reasons and solution of problems with access to files

The problem is that you are trying to access files and folders created under a different account. There are two solutions: either allow to all users access, or allow only those who need it by listing them. Both solutions are easy to implement according to the instructions above. The only difference is that you will enter in paragraph 8 - the word "All" or listing users.

By the way, you can allow access to all, but deny access to one (several) users, while the deny setting will be a priority for the listed users.

There are many reasons for problems with accessing files. Most often they appear if you have several accounts, several operating systems or computers - all accounts are different, when creating files and folders, the rights are also assigned differently.

4. What can not be done with the rights of files and folders

Attention

Do not under any circumstances assign full access to files and folders on the entire hard disk with the installed operating system!

There is a myth that the operating system does not consider the user to be the owner of its files, so you need to assign access rights to all files on the disk. This is not true and you cannot change the rights of all files! The system, which was not "poked", did not assign access rights manually, is able to correctly assign the necessary rights!

Use my instructions only in case of real problems, not to prevent contrived ones.

Let me explain: by allowing access to system files, Windows will still work, but any virus or incorrectly working program can do very bad things. You hardly need problems.

The folders “C: \ Windows”, “C: \ Program files”, “C: \ Program files (x86)”, “C: \ Users”, “C: \ System”, “C: \ ProgramData "," C: \ Recovery "and many others. You cannot change them, except in cases where you need to make some manipulations with the files (for example, to change the Windows theme), and you need to return the settings back.

Attention

Do not change the security settings "just like that", making the system defenseless against viruses and crashes! After installing Windows, the permissions to system folders are configured correctly, no need to change them!

Advice: if the program works correctly only if it is run “as administrator”, and produces errors during normal startup, try assigning full rights to change the folder with it in “C: \ Program files” or “C: \ Program files ( x86) "(not the Program files folder itself, but the folder with the desired program inside it!).

Very often it helps to run old games on Windows Vista / 7/8, which store settings files, save files inside their folder. Launched without permission to modify their own files, such games, at best, cannot save game progress, at worst, they close or do not start at all. It's the same with old programs.

5. Conclusions

1. Assigning access rights is relatively easy.

2. Access rights cannot be changed without a justified purpose.

3. Changed the permissions of system files - change them back. To change the rights systemic

If in Windows 8 or Windows 8.1 you try to open, move or edit any system file, you will most likely get an error indicating that you do not have access rights. Moreover, this error occurs even if you are working with administrator rights. And why do you actually need to intervene in the system and change something there? There can be many reasons for this. Let's say you need to manually edit a log or image, or replace a file for some bold experiment. So, you cannot do this, even if you have administrator rights.

The reason is that in Windows 8 there are rights of an even higher access level, so to speak, root rights. They belong to the system itself. To get them, you need to change a few simple settings. There are two options - changing access rights manually and using a special utility TakeOwnershipEx... First, consider the first method. Let's say you want to get full permissions on the system file twinui.dll. Right-click on it and select Properties from the context menu.

In the properties window, switch to the "Security" tab and click "Advanced".

This will open the Advanced Security Settings window.

At the top of the window, you can see the file name and path, as well as the name of its true owner. By default it is TrustedInstaller, for some types of files it can be SYSTEM... This is exactly what you need to change. Click "Change", in the window that opens, enter your username and by clicking the "Check names" button, make sure the specified name is correct. If specified correctly, the computer name will be appended to it. Click OK and save the editing result.

Now we return to the properties window of twinui.dll, click the "Change" button,

in the list, select the username that we assigned instead TrustedInstaller, set the checkboxes in the checkboxes and save the result.

Congratulations, you are now the rightful owner of this property. In much the same way, you can set permissions on directories.

Everything that we have done manually up to this point can be done using the utility TakeOwnershipEx... This very simple and easy-to-use application performs all the above operations, only much faster. In the utility window, you need to click the "Get access rights" button and specify the path to the folder or file that you want to "unblock".

The utility remembers all changes, so it will not be difficult to restore access rights, especially since for this in TakeOwnershipEx there is a corresponding option.

By the way, during installation, the program is built into Explorer, which makes working with it even more convenient and quick.

Compared to the first method, the use of the utility has certain limitations. So, you will not be able to set the rights to directories recursively, that is, when setting the rights to a folder, subfolders and the files they contain not processed ... And in conclusion, I would like to draw your attention to the following. It is not recommended to change access rights to system files and directories unnecessarily, as this weakens Windows protection and makes it vulnerable to malware attacks ... If possible, after editing one or another system object, the access rights to it should be returned to the default values.

It would seem a hackneyed topic, but at least once a week, lengthy explanations about how to get access to any object begin on the forum. Most often, these are, of course, folders or files, sometimes registry keys. Let's try to put together the ways to get access to local objects.

If you do not have access to a local object, you cannot manage its permissions; the lack of such an opportunity can be compensated for by changing the owner of the object, after which you can manage its permissions. This can be done in several ways, we will consider them in order.

Method 1. Using the graphical interface (GUI)

Method 2. Using the command line utilities takeown and icacls

Applies only to files, folders and disks.

Method 3. The item for changing the owner of the object in the context menu of the explorer

To simplify the procedure for changing the owner, you can add the corresponding item to the explorer context menu.
The proposed option also uses command line utilities takeown and icacls with certain parameters, and the resulting command will set the owner of the object on which the menu item will be applied, the group Administrators(or Administrators in the English version of the OS).

To add the Change Owner menu item to Russian


@ = "Change owner"
"NoWorkingDirectory" = ""


@ = "cmd.exe / c takeown / f \"% 1 \ "&& icacls \"% 1 \ "/ grant administrators: F"
"IsolatedCommand" = "cmd.exe / c takeown / f \"% 1 \ "&& icacls \"% 1 \ "/ grant administrators: F"


@ = "Change owner"
"NoWorkingDirectory" = ""


@ = "cmd.exe / c takeown / f \"% 1 \ "/ r / d y && icacls \"% 1 \ "/ grant administrators: F / t"
"IsolatedCommand" = "cmd.exe / c takeown / f \"% 1 \ "/ r / d y && icacls \"% 1 \ "/ grant administrators: F / t"

To add the "Take Ownership" menu item to english For Windows Vista versions, apply this registry tweak:

Windows Registry Editor Version 5.00


@ = "Take Ownership"
"NoWorkingDirectory" = ""


@ = "cmd.exe / c takeown / f \"% 1 \ "&& icacls \"% 1 \ "/ grant administrators: F"
"IsolatedCommand" = "cmd.exe / c takeown / f \"% 1 \ "&& icacls \"% 1 \ "/ grant administrators: F"


@ = "Take Ownership"
"NoWorkingDirectory" = ""


@ = "cmd.exe / c takeown / f \"% 1 \ "/ r / d y && icacls \"% 1 \ "/ grant administrators: F / t"
"IsolatedCommand" = "cmd.exe / c takeown / f \"% 1 \ "/ r / d y && icacls \"% 1 \ "/ grant administrators: F / t"

To remove this menu item (regardless of the system language), you can use the following registry tweak:

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT \ * \ shell \ runas]

[-HKEY_CLASSES_ROOT \ Directory \ shell \ runas]

Sometimes, when opening data, the user receives a warning that they cannot be accessed or that they need to request permission from the owner. In this case, it will be possible to access the information after obtaining the rights. Several ways to do this will be described in this article. But in order to use them, the user account must have administrator rights. However, do not change the owner at once for the entire HDD on which the system is installed, this can lead to failures.

Using the takeown command

The first option for obtaining rights is associated with the use of the console. To get started, you need to start the console with administrator rights, this is done through the start. After starting, you will need to enter the command takeown / F "path indication" / R / D Y.

Examples of command execution are shown in the image. After that, the user will be able to access the information.

Change owner using icacls command

The second method also involves entering a command through the console. It is worth turning it on and entering Icacls “Data point” / setowner “User” / T / C. Paths are written in exactly the same way as in the previous section. Instead of the user, you need to substitute the name of the account to which the data will become available.

An example of operator input and execution can be seen in the image.

Using security settings

The next method has nothing to do with using the console and entering commands, it uses only standard system tools. To get started, you need find a file or folder that you want to access. After that, you will need to click on it and select " Properties", Go to the security section, and then select the item Additionally.

In the window that opens, find the owner and click next to him on the link “ Change". After that, another window will open, in which you will again have to go to additional parameters, and already search in them.

As a result, a list of accounts on the device will be displayed. It is worth choosing the one that will receive the necessary rights. After which it is necessary click ok.

If the user changes the owner of a folder or local disk, then you need to check the box marked in the image, and then apply the changes.

Other ways to obtain owner rights

You can download one of the free utilities that will allow you to access data from the context menu. For example, TakeOwnershipPro, a free utility to help you gain access. One has only to click RMB on the data and select the desired item.

However, such actions are not required very often, so the user should consider whether it is necessary to clog the system with another program that will constantly run in the background.

It so happens that Windows 10 denies users access to files and folders stored on the computer. Basically, this problem is due to the fact that users do not have the appropriate rights, even though they have an account with administrator rights. This usually happens in the case of system files / folders, or those that were previously owned by a user whose account no longer exists. What to do if access to a file or folder is denied in Windows 10? If this problem torments you too, this instruction should help you, in which it is described, how to get full access to files or folders in Windows 10.

Get full access to a file or folder in Windows 10 through File Explorer

  1. Open up Conductor and find the file or folder you want. If you can't see a file or folder in File Explorer, don't forget.

  2. Right-click on a file or folder and click on the item Properties.

  3. Go to Security and click on the button Additionally.
  4. In the window Additional security options click the link Change.

  5. Press Additionally - Search.

  6. Select your preferred owner from the list of users and groups and click OK.

  7. Check the box next to Replace owner of subcontainers and objects, and click on OK.

  8. Right-click the file or folder again and open PropertiesSecurity.
  9. Press AdditionallyAdd.

  10. Click on the link Select subject.

  11. Press AdditionallySearch, select a subject from the list and click OK.
  12. Under the inscription General Permissions check the box next to Full access and click on OK.

  13. Check the box next to Replace all child object permission entries with inherited from this object.

  14. Press OK to apply all changes.

Take ownership of a file or folder in Windows 10 with TakeOwnershipEx utility

Alternatively, you can use the TakeOwnershipEx utility. It allows you to change the owner of a file or folder and get full access to them in a few simple clicks. Users just need to do the following:


Was this guide helpful? Did it help you solve the problem with accessing files and folders in Windows 10? Write your answer in the comments.