Linux工具使用(2)——Xmanager
2012-01-08 13:10
288 查看
修改/etc/X11/xdm/Xaccess文件,找到下面语句:# * # any host can get a login windows,去掉前面#号;
#/etc/X11/xdm/Xaccess
#* # any host can get a login window
改为:
* any host can get a login window
修改/etc/X11/gdm/gdm.conf文件
[xdmcp]
# Distributions: Ship with this off. It is never a safe thing to leave
# out on the net. Setting up /etc/hosts.allow and /etc/hosts.deny to only
# allow local access is another alternative but not the safest.
# Firewalling port 177 is the safest if you wish to have xdmcp on.
# Read the manual for more notes on the security of XDMCP.
Enable=false
…………………………………………………………………..
#Port=177
将其中Enable=false改为Enable=true或者Enable=1
将#Port=177前面的#删除
Enable=false
#Port=177
修改/etc/inittab文件
Id:3:initdefault: 改为 id:5:initdefault:
X:5:respawn:/etc/X11/prefdm –nodeamon改为x:5:respawn:/usr/bin/gdm
修改/etc/X11/xdm/xdm-config的最后一行,在displayManager.requestPort:0前面加上一个!号
DisplayManager.requestPort:0改为! DisplayManager.requestPort:0
确保/etc/X11/xdm/Xservers的属性为444,/etc/X11/xdm/Xsetup_0的属性为755;默认如此。
Linux机器配置有防火墙,为防止防火墙将通过177端口(即xdmcp服务)的数据过虑,必须加上:
iptables -A INPUT -p udp -s 0/0 -d 0/0 --dport 177 -j ACCEPT
#/etc/X11/xdm/Xaccess
#* # any host can get a login window
改为:
* any host can get a login window
修改/etc/X11/gdm/gdm.conf文件
[xdmcp]
# Distributions: Ship with this off. It is never a safe thing to leave
# out on the net. Setting up /etc/hosts.allow and /etc/hosts.deny to only
# allow local access is another alternative but not the safest.
# Firewalling port 177 is the safest if you wish to have xdmcp on.
# Read the manual for more notes on the security of XDMCP.
Enable=false
…………………………………………………………………..
#Port=177
将其中Enable=false改为Enable=true或者Enable=1
将#Port=177前面的#删除
Enable=false
#Port=177
修改/etc/inittab文件
Id:3:initdefault: 改为 id:5:initdefault:
X:5:respawn:/etc/X11/prefdm –nodeamon改为x:5:respawn:/usr/bin/gdm
修改/etc/X11/xdm/xdm-config的最后一行,在displayManager.requestPort:0前面加上一个!号
DisplayManager.requestPort:0改为! DisplayManager.requestPort:0
确保/etc/X11/xdm/Xservers的属性为444,/etc/X11/xdm/Xsetup_0的属性为755;默认如此。
Linux机器配置有防火墙,为防止防火墙将通过177端口(即xdmcp服务)的数据过虑,必须加上:
iptables -A INPUT -p udp -s 0/0 -d 0/0 --dport 177 -j ACCEPT
相关文章推荐
- Linux零基础入学之1-5 vim编辑器的使用和Xmanager远程工具的使用
- 使用XManager操作Linux
- Linux环境下使用JVM诊断工具排查问题
- Linux 查看磁盘分区、文件系统、使用情况的命令和相关工具介绍
- Windows下连接远程linux服务器的工具--- Xshell、WinSCP、Putty的对比使用
- 使用远程图形登录工具Xmanager在客户端启动服务器的图形界面
- Linux远程备份工具Rsync使用案例
- linux 下内存泄露检测工具valgrind的使用
- linux screen工具的使用
- linux系统 使用git图形化管理工具———gitk
- 使用Xmanager远程连接Linux RedHat 6.4图形桌面
- windows下使用的linux模拟环境工具—cygwin
- 关于Linux操作系统Fdisk工具的使用介绍
- linux上很方便的上传下载文件工具rz和sz使用介绍
- linux中使用tree工具
- 在Linux上如何使用fuser工具来查询文件的用户
- linux工具使用
- Linux远程备份工具Rsync使用案例
- linux下内网端口转发工具:linux版lcx 使用方法
- [转载]Unix/Linux 工具: Screen 命令使用