您好,登錄后才能下訂單哦!
這篇文章給大家分享的是有關Xmanager如何連接linux 5配置的內容。小編覺得挺實用的,因此分享給大家做個參考,一起跟隨小編過來看看吧。
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配置”這篇文章就分享到這里了,希望以上內容可以對大家有一定的幫助,讓大家可以學到更多知識,如果覺得文章不錯,可以把它分享出去讓更多的人看到吧!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。