Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1617777
  • 博文数量: 268
  • 博客积分: 8708
  • 博客等级: 中将
  • 技术积分: 3764
  • 用 户 组: 普通用户
  • 注册时间: 2007-04-06 15:58
文章分类

全部博文(268)

文章存档

2014年(1)

2013年(15)

2012年(23)

2011年(60)

2010年(51)

2009年(12)

2008年(59)

2007年(47)

分类: LINUX

2007-07-05 11:15:54

Problem in connecting to the ftp server
I had a Linux system and I tried to ftp to the server. I was getting the following error:
Connected to site.com.
220 ns1.site.com FTP server (Version 5.60) ready.
User (site.com:(none)): user
530 Must perform authentication before identifying USER.
Login failed.
ftp> bye
221 Goodbye.

To resolve the problem I updated the entry in the /etc/xinit.d/gssftp file. I located the entry server_args = -l -a  and removed -a option. Then I issued the following command.
service xinetd restart
This solved the problem.
 
ftp不能对root帐户操作的原因有2个 
1. /etc/ftpusers里面有root, 
2. 还有一个原因就是/sbin/sh缺省情况下/etc/shells里面是注释掉的 
所以你要对root进行ftp, 在unixware下还要修改/etc/shells把/sbin/sh前的#号去掉
 
redhat 7.x不能用root用户ftp,telnet
用root 登陆 在/etc/pam.d/login里把第一行注释上就行了。
现想用telnet远程登录这台机器,root用户不能登录
打开/etc/xinetd.d/krb5-telnet 然后把disable=yes 改成no
再打开/etc/pam.d/login 里pam_securerrytty.so注释
重启xinetd 
service   xinetd   restart   启动telnet服务
 
netstat -l | grep telnet
tcp        0      0 *:telent          *:*       LIST  telnet服务正常
netstat -l | grep ftpserver
阅读(1050) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~