防火墙、selinux关闭
#service iptables stop
#chkconfig --level 2345 iptables off
#chkconfig --level 2345 setenforce off
#vi /etc/selinux/config
SELINUX=disabled
#setenforce 0
开启xmanager连接linux
# vi /etc/gdm/custom.conf
[security]
AllowRemoteRoot=true
[xdmcp]
Enable=1
Port=177
telnet 服务开启:
1)#rpm -ivh xinetd-*
2)#rpm -ivh telnet-server-*
#vi /etc/xinetd.d/telnet
disabled配置为no
(#vi /etc/xinetd.d/ekrb5-telnet
disable改成=yes
#chkconfig krb5-telnet on linux5.8之前)
# service xinetd start
# vi /etc/securetty
增加如下几行:
pts/1
pts/2
pts/3
pts/4
pts/5
#chkconfig --list | grep telnet
#netstat -ant
开启root登录权限
[root@rac1 ~]# more /etc/pam.d/login
#auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so #将这一行加上注释!
开启FTP服务:
启动ftp服务:
#service vsftpd start
#Chkconfig --level 2345 vsftpd on
启动ssh服务,sftp服务
#Service sshd start
#chkconfig --level 2345 sshd on
开启root可以通过ftp软件连接的功能:
默认有一些用户是不能通过ftp连接服务器的,比如root。如果需要开启这些用户,就需要做一些修改才可以。
(1)编辑/etc/vsftpd/ftpusers文件,去掉里面root一行
这个文件里存放的是被禁止的登录名
(2)编辑/etc/vsftp/user_list文件,去掉里面root一行
说明:当文件/etc/vsftpd/vsftpd.conf中userlist_deny=YES时
文件user_list和ftpusers中的登录名列表被禁止
具体查看ftpusers,user_list文件的注释