Ubuntu system, Xshell upload file error

Reference:
Reprinted for backup, study and search, delete contact for infringement
insert image description here

Change file permissions
sudo chown -R username:username filedir
sudo chown -R asiagrouproot:asiagrouproot /www/server/nacos

[Supplementary knowledge]
The Linux chown (full spelling in English: change owner) command is used to set the command of the file owner and file association group.
chown requires the privileges of the superuser root to execute this command.

chown [-cfhvR] [--help] [--version] user[:group] file...

user : User ID of the new file owner
group : User group of the new file owner
-c : Display information about changed parts
-f : Ignore error messages
-h : Fix symbolic links
-v : Display Detailed processing information
-R: process all files in the specified directory and its subdirectories
–help: display auxiliary instructions
–version: display version

like:

将文件 file1.txt 的拥有者设为 root,group设置为 root:
chown root:rootfile1.txt

https://www.runoob.com/linux/linux-comm-chown.html

Guess you like

Origin blog.csdn.net/qq_45796667/article/details/132543714