每当我将文件上传到运行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
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。