The error message "Permissiondenied" is displayed when the Ubuntu system copies a file to another file. This error message indicates that the permission to copy the file has been rejected. This error indicates that the permission to copy the file has been found. How can this problem be solved?
The error message "Permission denied" is displayed when the Ubuntu system copies a file to another file. This error message indicates that the Permission to copy the file has been rejected. This error indicates that the Permission to copy the file has been found. How can this problem be solved?
1. On the surface, the usr folder can be authorized because of insufficient permissions:
Zhengxiangwen @ 10 :~ $ Sudo chmod-R 777 usr
Where
-R refers to all subdirectories and files that are cascade to the application directory.
777 indicates that all users have the highest permissions.
2. However, the above solution is just a temporary solution. In fact, we need to enter the system as an administrator to ensure smooth access.
Then the question arises. How can I access the system as an administrator? Let's look at it:
After Ubuntu is installed, the root initial password (default password) is unknown and needs to be set.
1. log on to the system with the user created during Ubuntu installation;
2. EnterCommand: Sudo passwd press ENTER;
3. You will be prompted to enter the new password, repeat the password, and finally passwd: password updated sucessfully;
The root password has been set.
4. Enter the command su root;
That is, log on to the system as root, and copy the file again.
The above is the solution to the Permission denied error prompt when copying files in Ubuntu. You only need to set the root password as the root user and then log on as the root user to copy the files normally.