Xmanager如何连接linux 5配置

72次阅读
没有评论

共计 2685 个字符,预计需要花费 7 分钟才能阅读完成。

自动写代码机器人,免费开通

这篇文章给大家分享的是有关 Xmanager 如何连接 linux 5 配置的内容。丸趣 TV 小编觉得挺实用的,因此分享给大家做个参考,一起跟随丸趣 TV 小编过来看看吧。

redhat as 5 用 root 用户通过 xmanager 连接配置  

一、XMANAGER   连接到 REDHAT AS 5   需要修改的地方。

rhel5 与 rhel4 不同的地方是,rhel5 裡没有 /etc/X11/gdm/ 这个目录,rhel5 的 gdm 的配置文件放在这裡 /usr/share/gdm/defaults.comf,这一点可能是困扰大家的地方。
在 /usr/share/gdm/defaults.conf 裡确保有以下几句配置:
Enable=true
DisplaysPerHost=10
Port=177
在 /etc/inittab 裡把默认级别改為 5:
id:5:initdefault:
再在这个文件裡加一句:
x:5:respawn:/usr/bin/gdm
然后重啟系统。然后在 windows 系统上运行 xmanager2 裡的 Xbrowser 程序,在裡面新建一个 Xmanager Session,在 Host 这裡输入 ip 地址,其它配置都不要改变(包括端口号),确定退出。然后双击这个 New Xmanager Session,看到登录界面:

二、如果允许 Root 用户连接到 XMANAGER 需要修改以下内容:

  # vi defaults.conf 

[security]
# Allow root to login.  It makes sense to turn this off for kiosk use, when
# you want to minimize the possibility of break in.
AllowRoot=true
# Allow login as root via XDMCP.  This value will be overridden and set to
# false if the /etc/default/login file exists and contains
# CONSOLE=/dev/login , and set to true if the /etc/default/login file exists
# and contains any other value or no value for CONSOLE.
AllowRemoteRoot=true
# This will allow remote timed login.
AllowRemoteAutoLogin=false
# 0 is the most restrictive, 1 allo

#vi /etc/securetty
……
tty2
tty3
tty4
tty5
tty6
tty7
tty8
tty9
tty10
tty11
pts/0
pts/1
pts/2
pts/3
pts/4

添加这一些。

# vi /etc/pam.d/login

#%PAM-1.0
#auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
auth       include      system-auth
account    required     pam_nologin.so
account    include      system-auth
password   include      system-auth
# pam_selinux.so close should be the first session rule
session    required     pam_selinux.so close
session    include      system-auth
session    required     pam_loginuid.so
session    optional     pam_console.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
session    required     pam_selinux.so open
session    optional     pam_keyinit.so force revoke
~

#vi  /etc/pam.d/remote

#%PAM-1.0
#auth       required     pam_securetty.so
auth       include      system-auth
account    required     pam_nologin.so
account    include      system-auth
password   include      system-auth
# pam_selinux.so close should be the first session rule
session    required     pam_selinux.so close
session    include      system-auth
session    required     pam_loginuid.so
session    optional     pam_console.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
session    required     pam_selinux.so open
session    optional     pam_keyinit.so force revoke
~
~

#vi /etc/xinetd.d/telnet

# default: on
# description: The telnet server serves telnet sessions; it uses \
#       unencrypted username/password pairs for authentication.
service telnet
{
        flags           = REUSE
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/sbin/in.telnetd
        log_on_failure  += USERID
       disable         = no
}
~
~

 

感谢各位的阅读!关于“Xmanager 如何连接 linux 5 配置”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!

向 AI 问一下细节

丸趣 TV 网 – 提供最优质的资源集合!

正文完
 
丸趣
版权声明:本站原创文章,由 丸趣 2023-12-07发表,共计2685字。
转载说明:除特殊说明外本站除技术相关以外文章皆由网络搜集发布,转载请注明出处。
评论(没有评论)