Get the App
SLTechnology News&Howtos  ›  Servers  › 

Ubuntu prompts Permission denied what to do when copying files

Shulou Source: shulou.com Published: 2022-06-01 18:27:28 10月03日 Update

Editor to share with you when Ubuntu copy files prompt Permission denied what to do, I hope you will get something after reading this article, let's discuss it together!

1. On the face of it, it is due to insufficient permissions, so it can be solved by authorizing the usr folder:

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

Among them

-R refers to cascading all subdirectories and files in the directory

777 is the highest privilege for all users.

Second, but the above solution is to cure the symptoms rather than the root of the disease, in fact, we need to enter the system as administrators in order to be unimpeded.

So the question is, how can you enter the system as an administrator? read on:

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

1. Log in to the system with the user created when installing Ubuntu

2. Then enter the command: sudo passwd press enter

3. Next, you will be prompted to enter the new password, re-enter the password, and finally prompt you to passwd:password updated sucessfully

The setting of the root password is now complete.

4. Then you can enter the command: su root

That is, log in to the system as root, and then you can copy the file.

After reading this article, I believe you have a certain understanding of "what to do with Permission denied when Ubuntu copies files". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

Tags: Files prompts passwords system input identity what to do commands permissions users administrators articles login management supreme unblocked unblocked and then temporary rather than permanent cure Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB OPPO Reno Huawei Shulou Information Docker