Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1916429
  • 博文数量: 498
  • 博客积分: 2078
  • 博客等级: 大尉
  • 技术积分: 1645
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-18 22:43
个人简介

安大

文章分类

全部博文(498)

文章存档

2017年(1)

2016年(2)

2015年(21)

2014年(90)

2013年(101)

2012年(267)

2011年(16)

分类:

2012-07-24 19:30:37

Suse下网络配置
一、FTP配置
建议使用vsftp,如果使用了pure-ftpd,需要屏蔽掉pure-ftpd服务。
(1)root用户执行yast2---》network services--》network services (inetd)
将/usr/sbin/pure-ftpd 和/usr/sbin/vsftpd
分别将pure-ftp的状态置为off,vsftpd的状态置为on,然后单击按钮,修改完成。
(2)vi /etc/vsftpd.conf 注释掉下面的四项
#write_enable=YES
#local_enable=YES
#ascii_upload_enable=YES
#ascii_download_enable=YES
(3)vi /etc/ftpuser 将root用户注释掉
(4)重启网络服务:/etc/init.d/xinetd restart
二、telnet设置
(1). 用vi命令编辑/etc/hosts.deny文件,放开telnet登录权限控制,
# vi /etc/hosts.deny:
在ALL: ALL 行前加“#”号注释,注销该行。
(2). 用vi命令编辑/etc/hosts.allow文件,放开root用户登录权限控制:
添加一行ALL : ALL
(3). 用vi命令编辑/etc/xinetd.d/telnet文件,放开telnet:
用”#”注销disable=yes,或者修改为 disable=no
(4). 命令编辑/etc/pam.d/login文件,放开root用户登录权限控制,
# vi /etc/pam.d/login:
在auth required /lib/security/pam_securetty.so行前加“#”号注释,注销该行。
(5). 启动xinetd服务,
#/etc/init.d/xinetd stop
#/etc/init.d/xinetd start
三、xmanager配置
1. /etc/X11/xdm/Xaccess 文件,去掉这行的注释。
# * #any host can get a login windows
――变成
* #any host can get a login windows
2. /etc/X11/xdm/xdm-config 文件,注释掉这一样。
"Display Manager .Requestport 0"
3./etc/opt/gnome/gdm/gdm.conf文件,[xdmcp]部分,把Enable 改为 true 去掉#Port=177的注释
4. /etc/opt/kde3/share/config/kdm/kdmrc文件,[Xdmcp]部分,把enable 改为 true 去掉#Port=177的注释
5.检查 /etc/inittab 修改运行级别为5 (X11) ,如果为3的话,你看到的将不是桌面,而是命令行窗口。
init 0(halt,不要将其设置为系统的initdefault)
init 1(single user mode,单使用者模式)
init 2(multiuser,without nfs,多用户模式,不带NFS)
init 3(Full multiuser mode,多用户模式,带NFS)
init 4(unused,保留)
init 5(X11,图形界面多用户模式)
init 6(reboot,不要将其设置为系统的initdefault)
id:5:initdefault:
6. 关闭防火墙
修改防火墙配置文件/etc/sysconfig/ipchains可能是/etc/sysconfig/iptable,
在文件头部加入如下内容,
# If you want to use GNOME/KDE, add the following line.
-A input -p udp -s 0/0 -d 0/0 177 -j ACCEPT
7. reboot
连接:
Xmanager同网段打开Xmanager-broadcast,跨网段在Xbrowser 中输入IP 即可。
使用Exceed 同一网段XDMCP使用broadcast模式(可自动发现主机),跨网段使用query。
XManager登录SuSE的xWindow,root用户不能登录,其他用户都可以
1./etc/sysconfig/displaymanager里有关root登录的项目需要设置---OK
将 DISPLAYMANAGER_ROOT_LOGIN_REMOTE="no"
改为 DISPLAYMANAGER_ROOT_LOGIN_REMOTE="yes"
2、新建文件/etc/rc.config,添加下面一行:ROOT_LOGIN_REMOTE="yes"
阅读(749) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~