linux – 在VSFTP上载中设置文件权限

前端之家收集整理的这篇文章主要介绍了linux – 在VSFTP上载中设置文件权限前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
每当我将文件上传到运行VSFTP的FTP服务器时,其上的文件权限默认为600(rw ——-).如何将其更改为775(rwxr-xr-x)?

解决方法

似乎有人已经修改了你的umask,因为根据vsftpd man文件,默认值为776.检查你的配置以获取以下值并进行相应调整.

file_open_mode

The permissions with which uploaded files are created. Umasks are applied on top of this value. You may wish to change to 0777 if you want uploaded files to be executable.

Default: 0666

local_umask

The value that the umask for file creation is set to for local users. NOTE! If you want to specify octal values,remember the “0” prefix otherwise the value will be treated as a base 10 integer!

Default: 077

猜你在找的Linux相关文章