今天客户说FTP 上面的文件权限不够,默认的FTP 权限是027 ,根据需要更改为002 .
1 .查看帮助
ftpd Daemon
Purpose
Provides the server function for the Internet FTP protocol.
Syntax
Note: The ftpd daemon is usually started by the inetd daemon. It
can also be controlled from the command line, using SRC commands.
/usr/sbin/ftpd [ -d ] [ -f ] [ -ff ] [ -k ] [ -l ] [ -U ] [ -t TimeOut
] [ -T MaxTimeOut ] [ -s ] [ -u OctalVal ] [-q [-C]]
Description
The /usr/sbin/ftpd daemon is the DARPA Internet File Transfer Protocol
(FTP) server process. The ftpd daemon uses the Transmission Control
Protocol (TCP) to listen at the port specified with the ftp command
service specification in the /etc/services file.
-u OctalVal
Sets the ftpd daemon's umask. The OctalVal variable must be
specified as an octal value to define the umask. The default umask
is an octal value of 027, which results in file permissions of
rw-r-----.
2 .修改/etc/inetd.conf 中FTPD 相关的文件
#ftp stream tcp6 nowait root /usr/sbin/ftpd ftpd
ftp stream tcp6 nowait root /usr/sbin/ftpd ftpd -u 002
3 .Restart inetd 进程
:/etc>ps -ef | grep inetd
root 114848 168044 0 Jan 30 - 0:00 /usr/sbin/inetd
root 962762 725026 0 15:58:05 pts/5 0:00 grep inetd
:/etc>kill -HUP 114848
4.测试所有FTP 上去的权限都为RW-RW-R 的权限了
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7318139/viewspace-898166/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/7318139/viewspace-898166/