Get the App
SLTechnology News&Howtos  ›  Servers  › 

Why can't linux upload files?

Shulou Source: shulou.com Published: 2022-06-03 06:41:07 09月21日 Update

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.

Tags: File reason content user usage directory application of knowledge host value owner folder article method time more permissions look account problem switch Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple NVidia Docker OPPO Reno Linux