首先,您需要了解导致问题的文件的所有者、组和权限。 为此,只需在目录上执行 ls -l 并检查即可。 如果您希望能够编辑和保存来自 FTP 的文件,您需要知道 FTP 用户拥有哪个组并更改文件的组,或者更改所有者和组或更改权限。
您需要阅读有关 linux 的用户、组和权限的信息,我建议您在 google 上搜索并阅读一些内容,您将能够自己完成。
顺便说一句,发布的命令很好,但不确定它们是否做了正确的更改。
Well, first you need to know owner, group and perms of the files that are causing problems. To do that, simply do an ls -l on the dir and check that. If you want to be able to edit and save the files from FTP, you need to know which group the FTP user have and change the group of the files, or change the owner and group or change the permissions.
You need to read about users, groups and permissions on linux, I recommend you to google about it and read a bit and you will be able to do it yourself.
BTW, the commands posted are fine, but not sure if they do the correct changes.
发布评论
评论(1)
首先,您需要了解导致问题的文件的所有者、组和权限。
为此,只需在目录上执行 ls -l 并检查即可。
如果您希望能够编辑和保存来自 FTP 的文件,您需要知道 FTP 用户拥有哪个组并更改文件的组,或者更改所有者和组或更改权限。
您需要阅读有关 linux 的用户、组和权限的信息,我建议您在 google 上搜索并阅读一些内容,您将能够自己完成。
顺便说一句,发布的命令很好,但不确定它们是否做了正确的更改。
Well, first you need to know owner, group and perms of the files that are causing problems.
To do that, simply do an
ls -l
on the dir and check that.If you want to be able to edit and save the files from FTP, you need to know which group the FTP user have and change the group of the files, or change the owner and group or change the permissions.
You need to read about users, groups and permissions on linux, I recommend you to google about it and read a bit and you will be able to do it yourself.
BTW, the commands posted are fine, but not sure if they do the correct changes.