Ubuntu when copying files prompts how to resolve Permission denied?

  
                

When the Ubuntu system copies a file to another file, it prompts “Permission denied”, which means that the recognition is rejected, meaning that the permission to copy the file has found a problem, so how to solve it?

First, ostensibly because of lack of authority, and therefore can be resolved by way usr folder authorization:

zhengxiangwen @ 10: ~ $ sudo chmod -R 777 usr

where

-R refers to all subdirectories and files that are cascaded into the directory

777 is the highest privilege for all users

However, the above solution is only a temporary solution, in fact, we need to enter the system as an administrator, in order to be unimpeded

Then the problem comes, how can we enter the system as an administrator, down Look:

After Ubuntu is installed, the root initial password (default password) is unknown and needs to be set.

1, first use the user created when installing Ubuntu to log in to the system;

2, then enter the command: sudo passwd 摁 enter;

3, the next will Prompt you: Enter a new password, repeat the password, and finally prompt you for passwd:password updated sucessfully;

The root password has been set.

4, then you can enter the command: su root;

Log in to the system as root, then you can copy the file, you can.

The above is the solution to the Permission denied error when Ubuntu copies files. Just follow the steps above to set the root password and log in as root. You can copy the files normally.

Copyright © Windows knowledge All Rights Reserved