加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

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

发布时间:2020-12-13 17:10:15 所属栏目:Linux 来源:网络整理
导读:每当我将文件上传到运行VSFTP的FTP服务器时,其上的文件权限默认为600(rw ——-).如何将其更改为775(rwxr-xr-x)? 解决方法 似乎有人已经修改了你的umask,因为根据vsftpd man文件,默认值为776.检查你的配置以获取以下值并进行相应调整. file_open_mode The pe
每当我将文件上传到运行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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读