What should I do if Permissiondenied is prompted during file Copying on Ubuntu?

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.