Home > Common Problem > You need the permissions provided by admin to make changes to this file. How to solve this problem?

You need the permissions provided by admin to make changes to this file. How to solve this problem?

DDD
Release: 2023-07-26 10:56:33
Original
43233 people have browsed it

You need the permissions provided by admin to make changes to this file. Solution: 1. After selecting the administrator account on the login interface and entering the password, you can modify the file smoothly; 2. You can right-click The file can be solved by selecting "Run as administrator"; 3. Modify the file permissions, right-click the file, select "Properties", click the "Security" tab, then click the "Edit" button, select your user name, and then check Select the "Full Control" option; 4. Use the command prompt to solve the problem; 5. Set UA permissions.

You need the permissions provided by admin to make changes to this file. How to solve this problem?

#In computer operations, we often encounter situations where administrator rights are required to change files. In this case, ordinary users will not be able to modify or delete the file. This article will introduce some ways to solve this problem.

1. Log in to the computer using an administrator account

The easiest way is to log in to the computer using an administrator account, so that you can gain permission to change files. After selecting the administrator account and entering the password on the login interface, you can successfully modify the file.

2. Right-click the file and select "Run as administrator"

If you are currently logging in to the computer using a normal account, but need to make changes to a certain file , can be solved by right-clicking the file and selecting "Run as administrator". In this way, the system will prompt you to enter the administrator password. After confirmation, you can successfully modify the file.

3. Modify file permissions

If you have owner permissions on a file but cannot modify it, you can try to modify the permissions on the file.

1. Right-click the file and select "Properties".

2. Click the "Security" tab and then click the "Edit" button.

3. In the pop-up window, select your username, and then check the "Full Control" option.

4. Click "OK" to save the changes, then click the "Apply" and "OK" buttons.

In this way, you will have permission to modify the file.

4. Use the command prompt to solve the problem

If the above method does not work, you can try to use the command prompt to solve the problem.

1. Press the Win R key, enter "cmd" and press the Enter key to open the command prompt.

2. In the command prompt window, enter the following command: takeown /f file path (for example: takeown /f C:\folder\file.txt).

3. After pressing the Enter key, a confirmation message will appear. Enter "Yes" and press the Enter key.

4. Then, enter the following command: icacls file path /grant username:F (for example: icacls C:\Folder\File.txt /grant username:F).

5. After pressing the Enter key, the command prompt will display a message that the permissions have been successfully modified.

This way you will gain permission to make changes to the file.

5. Set UAC (User Account Control) permissions

User Account Control (UAC) can restrict users from changing system files and settings. You can follow the steps below to set UAC permissions:

1. Click the Start menu and enter "User Account Control Settings".

2. Click the "Change User Account Control Settings" option, and then drag the slider to "Never notify (turn off all UAC reminders)".

3. Click "OK" to save changes.

This way, UAC permissions will be disabled and you will be able to make changes to the file freely.

Conclusion

When the file cannot be changed because administrator permissions are required, we can log in with an administrator account, run the file as an administrator, modify the file permissions, and use the command prompt to resolve the issue, or set UAC permissions. Through these methods, you will be able to easily resolve this issue and modify or delete files freely.

The above is the detailed content of You need the permissions provided by admin to make changes to this file. How to solve this problem?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template