vsftpd上传文件后的权限问题

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
头像
ivancpp
帖子: 8
注册时间: 2008-11-06 7:05

vsftpd上传文件后的权限问题

#1

帖子 ivancpp » 2008-11-09 13:45

vsftpd 的根目录是/home/ftp,对/home/ftp/pub执行了chmod 777 /home/ftp/pub/ -R。
又将Apache2的根设置成了/home/ftp/pub,这样可以通过localhost访问pub目录,可是当我用ftp客户端上传一个文件夹temp到pub下后,在localhost中找不到temp,打开/home/ftp/pub后看到temp的打开权限是root!
我的问题是,如何才能做到用ftp上传的文件夹及其文件具有与其父目录pub相同的权限。
谢谢大家!
头像
ivancpp
帖子: 8
注册时间: 2008-11-06 7:05

Re: vsftpd上传文件后的权限问题

#2

帖子 ivancpp » 2008-11-11 0:57

没有人知道吗?
fason
帖子: 40
注册时间: 2007-08-01 16:51

Re: vsftpd上传文件后的权限问题

#3

帖子 fason » 2008-11-11 10:45

請參考:
VSFTPD.CONF
http://vsftpd.beasts.org/vsftpd_conf.html
chmod_enable
When enables, allows use of the SITE CHMOD command. NOTE! This only applies to local users. Anonymous users never get to use SITE CHMOD.

Default: YES
chown_uploads
If enabled, all anonymously uploaded files will have the ownership changed to the user specified in the setting chown_username. This is useful from an administrative, and perhaps security, standpoint.

Default: NO
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
头像
ivancpp
帖子: 8
注册时间: 2008-11-06 7:05

Re: vsftpd上传文件后的权限问题

#4

帖子 ivancpp » 2008-11-11 17:00

Thanks a lot!
yinsuntoday
帖子: 48
注册时间: 2008-09-10 15:12

Re: vsftpd上传文件后的权限问题

#5

帖子 yinsuntoday » 2008-11-14 17:05

这个问我也发生过现在也不知怎解决?????????????????
回复