suse下面远程root图形登陆设置

本文介绍如何在SUSE系统中配置远程使用root账户进行图形界面登录的方法。通过编辑配置文件并启用必要的设置,可以实现安全的远程图形界面访问。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在suse下面默认是不能远程使用root登陆图形界面的。要修改以下的文件:
vi /etc/opt/kde3/share/config/kdm/kdmrc
修改类似字段成如下:
[Xdmcp]
# Whether KDM should listen to XDMCP requests. Default is true.
Enable=true
# The UDP port KDM should listen on for XDMCP requests. Don't change the 177.
Port=177

vi /etc/rc.config
增加ROOT_LOGIN_REMOTE="yes"

vi /etc/sysconfig/displaymanager
改变下面的字段DISPLAYMANAGER_REMOTE_ACCESS="yes"
suse9下/etc/sysconfig/displaymanager需增加修改
DISPLAYMANAGER_ROOT_LOGIN_REMOTE="yes"

之后运行:
rckdm restart
就可以远程使用root登陆图形了。


Suse10下面远程root图形登陆设置

vi /etc/opt/gnome/gdm/gdm.conf
此设定档与大部分相同,以下为我更动过的选项
[security]
# If any distributions ship with this one off, they should be shot
# this is only local, so it’s only for say kiosk use, when you


# want to minimize possibility of breakin
AllowRoot=true
# If you want to be paranoid, turn this one off
AllowRemoteRoot=true
# If true this will basically append -nolisten tcp to every X command line,
# a good default to have (why is this a “negative” setting? because if
# it is false, you could still not allow it by setting command line of
# any particular server). It’s probably better to ship with this on
# since most users will not need this and it’s more of a security risk
# then anything else.
# Note: Anytime we find a -query or -indirect on the command line we do
# not add a “-nolisten tcp”, as then the query just wouldn’t work, so
# this setting only affects truly local sessions.
DisallowTCP=false
AllowShutdown=true
# Whether you need the root password to shut down from GDM and logout dialog.
SecureShutdown=true
[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=true
# The port. 177 is the standard port so better keep it that way
Port=177

设定完成后
/etc/init.d/xdm restart
即可连线。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值