今天朋友问了个问题,说自己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删除掉即可。
请给这篇日志评个分吧!
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删除掉即可。
请给这篇日志评个分吧!
发表评论


BO-BLOG的URL静
投了个机,取了回巧
