免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2514 | 回复: 7
打印 上一主题 下一主题

[新手入门] 关于改变上传ftp文件的缺省读写属性(已解决) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-11-16 08:59 |只看该作者 |倒序浏览
昨天在论坛找了些方法,但为什么我照做后上传文件依然还是640,重启机器也是这样,还有其他要注意的地方吗?
http://bbs.chinaunix.net/viewthread.php?tid=621323

问题 如何改变上传ftp文件的缺省读写属性?
解答 在AIX 环境中,当用户从Windows上传文件到AIX 服务器时
所传文件的缺省读写属性为640(rw-r-----)。如想改变
缺省读写属性为644,首先用vi 编辑器打开/etc/inetd.conf
文件,在"ftp"定义行的末尾加上"-u 033",然后刷新inetd 进程:
refresh -s inetd
这就改变了ftp文件的缺省属性。

[ 本帖最后由 lcxzy 于 2006-12-11 17:27 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-11-16 14:31 |只看该作者
自己顶起来,请各位高手指点,谢谢!!!

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
3 [报告]
发表于 2006-11-16 19:37 |只看该作者
会不会因为你第一次已经把640的文件传上去了
再传的话,已经有的文件的属性是不会改的
没有的文件 属性就是-u 033定义的了

论坛徽章:
0
4 [报告]
发表于 2006-11-16 19:56 |只看该作者
ftp上传一个新文件试试!

论坛徽章:
0
5 [报告]
发表于 2006-12-11 17:26 |只看该作者
找到原因了,"-u 033"后面再加个空格就好了。晕!!!

论坛徽章:
0
6 [报告]
发表于 2006-12-11 21:30 |只看该作者
为什么要再加一个空格呢~

论坛徽章:
0
7 [报告]
发表于 2006-12-11 21:44 |只看该作者
从信息中心中搜到的。
inetd.conf File Format for TCP/IP
Purpose
Defines how the inetd daemon handles Internet service requests.

Description
The /etc/inetd.conf file is the default configuration file for the inetd daemon. This file enables you to specify the daemons to start by default and supply the arguments that correspond to the desired style of functioning for each daemon. This file is part of TCP/IP in Network Support Facilities.

If you change the /etc/inetd.conf file, run the refresh -s inetd or kill -1 InetdPID command to inform the inetd daemon of the changes to its configuration file. The inetd.conf file specifies which daemons start by default and supplies arguments determining the style of functioning for each daemon.

The following daemons are controlled by the inetd daemon:

comsat
ftpd
...
...

论坛徽章:
0
8 [报告]
发表于 2006-12-11 21:47 |只看该作者
点开ftpd,

-u OctalVal 设置 ftpd 守护程序的 umask。OctalVal 变量必须指定为八进制的值,用来定义 umask。缺省的 umask 是八进制的 027,它导致了 rw-r- 的文件许可。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP