ftp容许root身份登入

| |
| 2008/03/25 22:47 | bob
今天朋友问了个问题,说自己ftp root登入不了了,给他解决了一下,同时顺便记录一下三种主流系统三种方式root登入被禁止时的解决办法:
1、telnet
  RedHat 将 /etc/pam.d/login 文件的 auth required pam_securetty.so注释掉或者将/etc/securetty文件重命名

  FreeBSD 将 /etc/ttys 文件中
  # Pseudo terminals
  ttyp0 none network
  ttyp1 none network
  ttyp2 none network
  ttyp3 none network


  修改为如下即可
  # Pseudo terminals
  ttyp0 none network on secure
  ttyp1 none network on secure
  ttyp2 none network on secure
  ttyp3 none network on secure

  Solaris 将 /etc/default/login 文件中的 CONSOLE=/dev/console注释掉即可

  2、SSH
  三个系统都是一样的。将/etc/ssh/sshd_config文件中的 #PermitRootLogin yes取消注释或者将 no 改为 yes

  3、FTP
  三个系统几乎一样。将文件 /etc/ftpusers 文件中的root删除掉即可。


请给这篇日志评个分吧!

10 分数: 10.0/10 (1 vote 票)

工作 » LAMP | 评论(0) | 引用(0) | 阅读(712)
发表评论
 网址
 电邮
  密码 游客无需密码
 昵称  *  [注册]
               

 
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我