ubuntu如何设定文件/目录的初始权限呢?

cleochan 2009-04-20 11:30:56
每次通过vsftpd上传上去的文件权限都非常低,每次都要到服务器上chmod,不知道该在哪里改这个初始权限呢?
这问题估计太简单了我在网上都找不到答案。。。望各位指教。
...全文
230 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
morris88 2009-04-20
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 cleochan 的回复:]
我是这么配的,但上传上去权限非常低,连读都不允许,不知道为什么。望指教
[/Quote]

你说的很对,但是你需要的不是这个完全一样的配置,它不能完成你需要的功能。
所以你必须修改配置,上面列举的是你需要修改的配置,可能不完全...
老兄,你不改,当然就不行了...
  • 打赏
  • 举报
回复
http://dev.csdn.net/article/37/37465.shtm
http://blog.vfocus.net/archives/000406.html

这里都有详细配置文件的过程跟注释.
cleochan 2009-04-20
  • 打赏
  • 举报
回复
我是这么配的,但上传上去权限非常低,连读都不允许,不知道为什么。望指教
morris88 2009-04-20
  • 打赏
  • 举报
回复
vsftpd配置文件的详细说明:

http://dev.csdn.net/article/37/37465.shtm
morris88 2009-04-20
  • 打赏
  • 举报
回复
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#


将上面的设置一下,貌似就行了...
cleochan 2009-04-20
  • 打赏
  • 举报
回复
感谢两位的回答,我改了一下可以了。由于楼上同学回复了3次所以分数给多一点,望另一位同学见谅。。。

19,615

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧