Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Ubuntu prompts Permission denied what to do when copying files

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report