ftpd -u 002 参数的应用

....[@more@]

今天客户说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/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
wu-ftpd-2.6.2是一个开源的FTP服务器软件,用于在互联网上传输文件。它支持多种操作系统,包括UNIX和Linux。 wu-ftpd-2.6.2具有许多功能和优点。首先,它具有强大的安全性措施,可以保护服务器和用户之间的数据传输。它支持加密协议,例如SSL / TLS,以确保传输的数据安全。此外,它还支持用户身份验证和访问控制,可以限制特定用户对服务器的访问权限。 其次,wu-ftpd-2.6.2具有可扩展性。它支持多种插件和模块,可以根据需要添加不同的功能和额外的功能。这使得它非常灵活和适用于不同的环境和需求。 此外,wu-ftpd-2.6.2还具有高性能和可靠性。它可以处理大量的并发连接,并具有优化的传输速度和稳定性。它还提供了一些高级功能,例如断点续传和自动重新连接,以提高用户的使用体验。 但是,wu-ftpd-2.6.2也存在一些缺点。首先,它的用户界面相对较为简单和不够友好,可能需要一些技术知识才能正确地进行配置和操作。其次,它在处理大量连接时可能会占用较多的系统资源。此外,wu-ftpd-2.6.2的开发已经停止,可能会存在一些潜在的安全风险。 综上所述,wu-ftpd-2.6.2是一个功能强大的FTP服务器软件,具有高安全性、可扩展性和性能。然而,使用它需要一些技术知识,并且需要注意潜在的安全问题。在选择FTP服务器软件时,需要根据具体需求进行评估和比较。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值