Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1038276
  • 博文数量: 836
  • 博客积分: 43880
  • 博客等级: 大将
  • 技术积分: 5485
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-20 17:36
文章分类

全部博文(836)

文章存档

2011年(1)

2008年(835)

我的朋友

分类: LINUX

2008-08-20 18:19:49


1.配置运行ProFTPD的方法 ServerTypeinetd #Settheuserandgroupthattheservernormallyrunsat. Usernobody Groupnobody 如果ServerType选择了inetd,/etc/init.d/proftpdstart,就会报错,因为你选择了inetd运行。 ProFTPdwarning:cannotstartneitherinstandalonenorininetd/xinetdmode.Checkyourconfiguration. 若要手动执行ProFTPD,要把ServerType设成standalone才行。 2.NIS认证 /etc/nsswitch.conf必须有nis服务 #Usersrequireavalidshelllistedin/etc/shellstologin. #Usethisdirectivetoreleasethatconstrain. #RequireValidShellsoff 必须把NISSever传过来的shell信息/usr/local/bin/bash,放在/etc/shells列表才行,否则视为invalidshell。 另外,也可以在/etc/passwd文件中的对应shell的那个field直接进行修改为/bin/bash,则忽略远端传过来的shell信息。 还有一个很重要的设置, #UncommentthisifyouareusingNISorLDAPtoretrievepasswords: PersistentPasswdoff PersistentPasswd如果设置为on,就只检查/etc/passwd里面的useraccount,不要用uncomment,要用上述语句,切记! 3.xinet启动ProFTPD #Settheuserandgroupthattheservernormallyrunsat. Userroot Grouproot 建立/etc/xinetd.d/proftpd,然后编辑如下内容。 serviceftp { disable=no flags=REUSE socket_type=stream wait=no user=root server=/usr/sbin/proftpd server_args=-c/etc/proftpd/proftpd.conf log_on_success =DURATIONUSERID log_on_failure =USERID } 保存之后,chmod xproftpd Everythinggonnabealright! (责任编辑:云子)


下载本文示例代码
阅读(259) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~