����Linux��
Linux����

Զ������(telnet/ftp/rsh/ssh)��Ϊroot���÷����ܽ�

����ʱ��:2006-08-13 09:50:55��Դ:��������:phpjava
����һ�����

��ȻĿǰ��Ҷ���Ϊtelnet/ftp/rsh��Ϊ����ȫ�ķ����Ѿ���̫ʹ�ã����ھ������ڲ�
��ijЩ�������Ȼ�㷺�ر�ʹ�ã��ر��ǰ�ȫ�Բ��Ǻ���Ҫ�ij����£�ijЩ������FTP��
������ʷ�ϳ�����������������Ȼ�����ô����ܶ�����ʹ����Щ����ֱ�ӵ�¼��Ϊroot
ʱ�������⣬���ľͼ򵥵ؽ���һ�����÷�����������⡣

��������

���豾�ĵ����в���������Redhat Linux��һ̨Ϊtelnet/ftp/rsh/ssh�ͻ���IPΪ
192.168.0.2,������Ϊ
client.domain.com;��һ̨Ϊ��������IPΪ192.168.0.1��������Ϊ
server.domain.com�����߶�����redhat linux 7.1 .

�����÷�

1. ֱ��telnet��Ϊroot.

a. �ڷ�����server.domain.com������/usr/sbin/ntsysv��ѡ��telnet���񣬻�OK��

b. ����#/sbin/service xinetd restart ����telnet����

c. ����#echo "pts/0" >> /etc/securetty ��
#echo "pts/1" >> /etc/securetty
......
�����Զ���ն�����ֱ�ӵ�¼��Ϊroot

d. ȷ����server.domain.com�ϵ�/etc/hosts��������������С�
192.168.1.2 client.domain.com client

���û�У�����server������echo "192.168.1.2 client.domain.com client" >>
/etc/hosts

������Ӧ���ܴ�clientԶ��telnetֱ����Ϊroot�ˡ�

�����������redhat 6.x,��ӵ���������0,1,2,3...��/etc/securetty���棬һ����
��һ�У�������0��ʼ��

���������ֶ�����û��pts,tty��

�����������redhat 5.x,���ttyp0, ttyp1,ttyp2... �ȵ�/etc/securetty.

���������ʣ�Ϊʲôtelnet/ftp��������ʱ��Ҫ�Ⱥܾã�������Ϊ�������������пͻ�
Զ�����ӽ���ʱ����֪���ͻ���IP��������telnet/ftp������ڲ����ƣ�����Ҫ�����
���IP���������������DNS�������������˷�����������ܿ�鵽����û�У���򵥵�
�ڷ�������/etc/hosts�м���ͻ��ļ�¼�Ϳ����ˡ�

2. ֱ��rsh��Ϊroot.

a. �ڷ�����������/urs/bin/ntsysvѡ��rexec ,rlogin ,rsh�������

b. ����#/sbin/service xinetd restart �������������

c. ����#echo "rexec" >> /etc/securetty;echo "rlogin" >>
/etc/securetty;echo "rsh" >> /etc/securetty

d. �ڷ�����������#echo "192.168.0.2 root" >> /root/.rhosts
���� #echo "client root" >> /root/.rhosts��ȷ���ڷ������ϵ�/etc/hosts����
client��
192.168.0.2 client.domain.com client

������Ӧ�ÿ��Դ�clientֱ����root����rsh�����������������ˡ�

ע�� ����redhat 7.x ��ʼ��ҪΪrsh����/etc/securetty.

3. ֱ��ftp��Ϊroot.

����Ƚϼ򵥣�������server�ϵ�/etc/ftpusers�е�rootһ��ǰ��Ÿ�ע��#���ɡ�

���ִ������缼����,telnet/rsh/ftp�����Ա�ssh/scp�����ˣ������Ѿ�����һ��
winscp,ͼ�λ���SCP���ߣ���http://winscp.vse.cz/eng/ �� ��ѵ�windows ssh��
�������࣬��tera term , putty�ȵȡ�
������FTP��ijЩ������Ȼ�������ô��������������֣�

a. FTP����ֱ�Ӱ�Զ�˷�������ij��Ŀ¼ѹ�����͵��ͻ��ˣ���Զ�̷�������sbinĿ
¼��������get sbin.tar.gzֱ�Ӱ�����Ŀ¼ѹ����FTP������Ϊ����ѹ���ļ��������
ʽ���Ժܺõ�����Զ�̸�������
linux OS��

b. Ϊ��Զ�̸�����һ̨linux OS��������redhat ����������׼�����з����Ľ���(ѡ��
�Զ������ֶ������Ľ���)��Ȼ����ALT+F2�л����ڶ����ն�,����������IP��Ĭ�����أ�
��fdisk/e2fsck �����ø�ʽ������Ӳ�̣���FTPԶ�̵õ�������������Ŀ¼����procĿ
¼��Ȼ�󼴿��Ը���һ̨��Զ��һ���ķ�������


4. ֱ��ssh��Ϊroot.

OpenSSH��Ĭ������sshd_config��������¼��Ϊroot�� PermitRootLogin yes ,���
�Ը�Ϊnoȥ��ֹ���������ǿ��ȫ�ԡ�
Ϊ��ֱ�Ӳ��������¼��Ϊroot,����Dz���RSA������֤��ʽ���С�
��������

���� 81 ������

  1. 82.226.82.* �� 2007-04-17 20:34:30����:

    http://e912025b355a7001559ee797ff177623-t.ghoiou0.info e912025b355a7001559ee797ff177623 http://e912025b355a7001559ee797ff177623-b1.ghoiou0.info e912025b355a7001559ee797ff177623 http://e912025b355a7001559ee797ff177623-b3.ghoiou0.info 196c3da0ce3e9a23267e7eab02ad2b11