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

Why can't linux upload files?

2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

What I want to share with you today is why linux can't upload files. I believe many people don't know much about it. In order to let you know more about linux, I summarized the following contents for you. Let's look down together. I'm sure you'll get something.

Question:

Unable to upload file to Linux host.

For example, we now want to upload the A file to the / opt/software directory, but we find that we can't upload it at all.

[isea@redis99 software] the total amount of $ll is 4664 RW Murray. 1 root root 1547237 October 28 07:25 redis-3.2.8.tar.gz-rw-r--r--. 1 root root 3226139 October 28 07:25 ruby-gems.tar.gz

Reason:

When we connect remotely, we use the isea user, so we cannot download the content to the root folder.

Solution:

1. Use a root account to connect, and then upload

2. Modify the owner of the / opt/software directory before uploading it.

[isea@redis99 opt] $sudo chown-R isea:isea / opt/module/ / opt/software/ [isea@redis99 opt] $ll total dosage 8drwxr-xr-x. 3 isea isea 4096 October 28 07:27 moduledrwxr-xr-x. 2 isea isea 4096 October 28 07:27 software

If you do not have root permissions for the general user, you can switch to the root user.

The reason why linux can not upload files is shared here, I hope the above content can have a certain reference value for everyone, you can learn to apply. If you like this article, you might as well share it for more people to see.

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