欢迎来到天天文库
浏览记录
ID:47943938
大小:71.00 KB
页数:2页
时间:2019-11-09
《Xmanger连接红旗linux方法》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、Xmanger连接红旗linux方法相关配置文件介绍1./usr/share/gdm/defaults.conf----GNOME管理默认的配置文件2./etc/inittab---init进程的主配置文件3./etc/gdm/custom.conf---GNOME的自定义配置文件服务器配置1.改变defaults.conf文件权限,默认是只读chmod700/usr/share/gdm/defaults.conf2.做如下配置---编辑/usr/share/gdm/defaults.confEnable=trueDisplays
2、PerHost=10Port=177AllowRoot=trueAllowRemoteroot=trueAllowRemoteAutoLogin=false3.做如下配置---编辑/etc/gdm/custom.conf(这部因为上边那部,该部可以不做)[xdmcp]Enable=1然后gdm-restart重启一下4.做如下配置---编辑/etc/inittab(不要修改原来设置,在最后新增一行如下记录)x:5:respawn:/usr/sbin/gdm5.重新加载GNOME桌面配置init3;init5二、如果允许Root用户
3、连接到XMANAGER需要修改以下内容:#videfaults.conf[security]#Allowroottologin.Itmakessensetoturnthisoffforkioskuse,when#youwanttominimizethepossibilityofbreakin.AllowRoot=true#AllowloginasrootviaXDMCP.Thisvaluewillbeoverriddenandsetto#falseifthe/etc/default/loginfileexistsandcontai
4、ns#"CONSOLE=/dev/login",andsettotrueifthe/etc/default/loginfileexists#andcontainsanyothervalueornovalueforCONSOLE.AllowRemoteRoot=true#Thiswillallowremotetimedlogin.AllowRemoteAutoLogin=false#0isthemostrestrictive,1allo#vi/etc/securetty......tty2tty3tty4tty5tty6tty7tt
5、y8tty9tty10tty11pts/0pts/1pts/2pts/3pts/4添加这一些。#vi/etc/pam.d/login#%PAM-1.0#auth[user_unknown=ignoresuccess=okignore=ignoredefault=bad]pam_securetty.soauthincludesystem-authaccountrequiredpam_nologin.soaccountincludesystem-authpasswordincludesystem-auth#pam_selinux.so
6、closeshouldbethefirstsessionrulesessionrequiredpam_selinux.soclosesessionincludesystem-authsessionrequiredpam_loginuid.sosessionoptionalpam_console.so#pam_selinux.soopenshouldonlybefollowedbysessionstobeexecutedintheusercontextsessionrequiredpam_selinux.soopensessiono
7、ptionalpam_keyinit.soforcerevoke~#vi/etc/pam.d/remote#%PAM-1.0#authrequiredpam_securetty.soauthincludesystem-authaccountrequiredpam_nologin.soaccountincludesystem-authpasswordincludesystem-auth#pam_selinux.socloseshouldbethefirstsessionrulesessionrequiredpam_selinux.s
8、oclosesessionincludesystem-authsessionrequiredpam_loginuid.sosessionoptionalpam_console.so#pam_selinux.soopenshouldonlybefol
此文档下载收益归作者所有